Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

git - Get sorted github repository search results by "some" attribute(the number of forks or stars)

How to get github search results sorted by the number of forks or stars?

I need this feature to demonstrate which project is the hottest among those that target the similar task/function/feature.

I notice github do offer the advanced search here, but how to write the query? Say, I wonder the top 10 forked django plugin apps. What the query looks like? I tried "django- fork:" or even "django- fork:>500", it doesn't work. (here we use 'django-' since most django plugin apps has such prefix)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Update of the Update (February 2013, source "Sortable Stars"):

Starting today you can sort your starred repositories by when you starred them or when the repositories were last updated.

enter image description here

So the sort criteria is now visible.


Update January 2013 (source: "A whole new code search")

Searching by number of forks seems now to return a result ordered by number of forks

django- forks:>500

This is confirmed by the blog post "Sorting through Search Results" (January 31, 2013):

If you're searching through repositories, you can sort by stars, forks, or recently-updated


(Original answer: Sept. 2012)

I don't see any sort option in GitHub advanced search.

The forks: filter is to indicate a precise number of fork, like this query would display the 4 repos with 100 forks for "django-". But that doesn't display all repo above 100 forks, and that doesn't sort them.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...