Skip to content

Commit 574274f

Browse files
Copilothubwriter
andauthored
Add missing sort options to sorting search results documentation (#38603)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hubwriter <54933897+hubwriter@users.noreply.github.com>
1 parent defc4bc commit 574274f

File tree

1 file changed

+43
-6
lines changed

1 file changed

+43
-6
lines changed

content/search-github/getting-started-with-searching-on-github/sorting-search-results.md

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,33 @@ topics:
2222

2323
Use the **Sort** dropdown menu to sort results by relevance, number of stars, number of forks, and how recently the items were updated.
2424

25-
To sort by interactions, reactions, author date, committer date, or how recently the items were updated, you can add a `sort` qualifier to your search query.
25+
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.
26+
27+
## Sort by comments
28+
29+
The `sort:comments` qualifier sorts by the number of comments.
30+
31+
| Qualifier | Example
32+
| ------------- | -------------
33+
| `sort:comments` or `sort:comments-desc` | [**org:github sort:comments**](https://github.com/search?q=org%3Agithub+sort%3Acomments&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by the highest number of comments.
34+
| `sort:comments-asc` | [**org:github sort:comments-asc**](https://github.com/search?q=org%3Agithub+sort%3Acomments-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending number of comments (the fewest to the most).
35+
36+
## Sort by created date
37+
38+
The `sort:created` qualifier sorts by the date when the items were created.
39+
40+
| Qualifier | Example
41+
| ------------- | -------------
42+
| `sort:created` or `sort:created-desc` | [**org:github sort:created**](https://github.com/search?q=org%3Agithub+sort%3Acreated&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by the most recently created date.
43+
| `sort:created-asc` | [**org:github sort:created-asc**](https://github.com/search?q=org%3Agithub+sort%3Acreated-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending created date (oldest to newest).
44+
45+
## Sort by relevance
46+
47+
The `sort:relevance` qualifier sorts by search relevance.
48+
49+
| Qualifier | Example
50+
| ------------- | -------------
51+
| `sort:relevance` or `sort:relevance-desc` | [**org:github sort:relevance**](https://github.com/search?q=org%3Agithub+sort%3Arelevance&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by highest search relevance.
2652

2753
## Sort by interactions
2854

@@ -41,11 +67,22 @@ The `sort:reactions` qualifier sorts by the number or type of reactions.
4167
| ------------- | -------------
4268
| `sort:reactions` or `sort:reactions-desc` | [**org:github sort:reactions**](https://github.com/search?q=org%3Agithub+sort%3Areactions&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by the highest number of reactions.
4369
| `sort:reactions-asc` | [**org:github sort:reactions-asc**](https://github.com/search?q=org%3Agithub+sort%3Areactions-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending number of reactions (the fewest to the most).
44-
| <code>sort:reactions-<em>reaction</em></code> | [**org:github sort:reactions-+1**](https://github.com/search?q=org%3Agithub+sort%3Areactions-%2B1&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by most thumbs up (:+1:) reactions.
45-
| <code>sort:reactions-<em>reaction</em></code> | [**org:github sort:reactions--1**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions--1&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by most thumbs down (:-1:) reactions.
46-
| <code>sort:reactions-<em>reaction</em></code> | [**org:github sort:reactions-smile**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-smile&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by most laugh (:smile:) reactions.
47-
| <code>sort:reactions-<em>reaction</em></code> | [**org:github sort:reactions-tada**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-tada&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by most hurray (:tada:) reactions.
48-
| <code>sort:reactions-<em>reaction</em></code> | [**org:github sort:reactions-heart**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-heart&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by most heart (:heart:) reactions.
70+
| `sort:reactions-+1` or `sort:reactions-+1-asc` | [**org:github sort:reactions-+1-asc**](https://github.com/search?q=org%3Agithub+sort%3Areactions-%2B1-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending thumbs up (:+1:) reactions (the fewest to the most).
71+
| `sort:reactions-+1-desc` | [**org:github sort:reactions-+1-desc**](https://github.com/search?q=org%3Agithub+sort%3Areactions-%2B1-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending thumbs up (:+1:) reactions (the most to the fewest).
72+
| `sort:reactions--1` or `sort:reactions--1-asc` | [**org:github sort:reactions--1-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions--1-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending thumbs down (:-1:) reactions (the fewest to the most).
73+
| `sort:reactions--1-desc` | [**org:github sort:reactions--1-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions--1-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending thumbs down (:-1:) reactions (the most to the fewest).
74+
| `sort:reactions-smile` or `sort:reactions-smile-asc` | [**org:github sort:reactions-smile-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-smile-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending laugh (:smile:) reactions (the fewest to the most).
75+
| `sort:reactions-smile-desc` | [**org:github sort:reactions-smile-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-smile-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending laugh (:smile:) reactions (the most to the fewest).
76+
| `sort:reactions-tada` or `sort:reactions-tada-asc` | [**org:github sort:reactions-tada-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-tada-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending hurray (:tada:) reactions (the fewest to the most).
77+
| `sort:reactions-tada-desc` | [**org:github sort:reactions-tada-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-tada-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending hurray (:tada:) reactions (the most to the fewest).
78+
| `sort:reactions-heart` or `sort:reactions-heart-asc` | [**org:github sort:reactions-heart-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-heart-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending heart (:heart:) reactions (the fewest to the most).
79+
| `sort:reactions-heart-desc` | [**org:github sort:reactions-heart-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-heart-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending heart (:heart:) reactions (the most to the fewest).
80+
| `sort:reactions-thinking_face` or `sort:reactions-thinking_face-asc` | [**org:github sort:reactions-thinking_face-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-thinking_face-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending thinking face (:thinking_face:) reactions (the fewest to the most).
81+
| `sort:reactions-thinking_face-desc` | [**org:github sort:reactions-thinking_face-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-thinking_face-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending thinking face (:thinking_face:) reactions (the most to the fewest).
82+
| `sort:reactions-rocket` or `sort:reactions-rocket-asc` | [**org:github sort:reactions-rocket-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-rocket-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending rocket (:rocket:) reactions (the fewest to the most).
83+
| `sort:reactions-rocket-desc` | [**org:github sort:reactions-rocket-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-rocket-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending rocket (:rocket:) reactions (the most to the fewest).
84+
| `sort:reactions-eyes` or `sort:reactions-eyes-asc` | [**org:github sort:reactions-eyes-asc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-eyes-asc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by ascending eyes (:eyes:) reactions (the fewest to the most).
85+
| `sort:reactions-eyes-desc` | [**org:github sort:reactions-eyes-desc**](https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-eyes-desc&type=Issues) matches issues in repositories owned by {% data variables.product.github %}, sorted by descending eyes (:eyes:) reactions (the most to the fewest).
4986

5087
## Sort by author date
5188

0 commit comments

Comments
 (0)