Skip to main content
Skip to content

Sorting search results

You can sort GitHub search results using the Sort menu, or by adding a sort qualifier to your query.

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.

QualifierExample
sort:comments or sort:comments-descorg:github sort:comments matches issues in repositories owned by GitHub, sorted by the highest number of comments.
sort:comments-ascorg: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.

QualifierExample
sort:created or sort:created-descorg:github sort:created matches issues in repositories owned by GitHub, sorted by the most recently created date.
sort:created-asc