Note
Sorting search results is not supported for GitHub code search. For more information on code search, see About GitHub Code Search.
Use the Sort dropdown menu to sort results by relevance, number of stars, number of forks, and how recently the items were updated.
To sort by interactions, reactions, comments, created date, relevance, author date, committer date, or how recently the items were updated, you can add a sort qualifier to your search query.
Sort by comments
The sort:comments qualifier sorts by the number of comments.
| Qualifier | Example |
|---|---|
sort:comments or sort:comments-desc | org:github sort:comments matches issues in repositories owned by GitHub, sorted by the highest number of comments. |
sort:comments-asc | org:github sort:comments-asc matches issues in repositories owned by GitHub, sorted by ascending number of comments (the fewest to the most). |
Sort by created date
The sort:created qualifier sorts by the date when the items were created.
| Qualifier | Example |
|---|---|
sort:created or sort:created-desc | org:github sort:created matches issues in repositories owned by GitHub, sorted by the most recently created date. |
sort:created-asc |