{"meta":{"title":"排序搜索结果","intro":"您可以使用“排序”菜单对GitHub搜索结果进行排序，也可以通过在查询中添加sort限定符来排序。","product":"在 GitHub 上搜索","breadcrumbs":[{"href":"/zh/search-github","title":"在 GitHub 上搜索"},{"href":"/zh/search-github/getting-started-with-searching-on-github","title":"从搜索GitHub开始"},{"href":"/zh/search-github/getting-started-with-searching-on-github/sorting-search-results","title":"排序搜索结果"}],"documentType":"article"},"body":"# 排序搜索结果\n\n您可以使用“排序”菜单对GitHub搜索结果进行排序，也可以通过在查询中添加sort限定符来排序。\n\n> \\[!NOTE]\n> GitHub代码搜索不支持对搜索结果进行排序。 有关代码搜索的详细信息，请参阅 [关于GitHub代码搜索](/zh/search-github/github-code-search/about-github-code-search)。\n\n使用“排序”\\*\\*\\*\\* 下拉菜单按相关性、星标数、分支数和项最近更新时间对结果排序。\n\n要按互动数、表情符号、评论数、创建日期、相关性、作者提交日期、提交者提交日期或项目的最近更新时间排序，可以在搜索查询中添加 `sort` 限定符。\n\n## 按评论数排序\n\n`sort:comments` 限定符按评论数排序。\n\n| 限定符                                                                                                                                                      | 示例 |\n| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:comments` 或 `sort:comments-desc`                                                                                                                   |    |\n| \\[                                                                                                                                                       |    |\n| **org:github sort:comments**]\\(<https://github.com/search?q=org%3Agithub+sort%3Acomments&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按评论数量从高到低排序。                |    |\n| `sort:comments-asc`                                                                                                                                      |    |\n| \\[                                                                                                                                                       |    |\n| **org:github sort:comments-asc**]\\(<https://github.com/search?q=org%3Agithub+sort%3Acomments-asc&type=Issues>) 匹配由 GitHub 拥有的存储库中的议题，并按评论数量升序排序（从最少到最多）。 |    |\n\n## 按创建日期排序\n\n`sort:created` 限定符按创建项的日期排序。\n\n| 限定符                                                                                                                                                 | 示例 |\n| --------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:created` 或 `sort:created-desc`                                                                                                                |    |\n| \\[                                                                                                                                                  |    |\n| **org:github sort:created**]\\(<https://github.com/search?q=org%3Agithub+sort%3Acreated&type=Issues>) 可匹配由 GitHub 拥有的仓库中的议题，并按最近创建日期排序。              |    |\n| `sort:created-asc`                                                                                                                                  |    |\n| \\[                                                                                                                                                  |    |\n| **org：github sort：created-asc**]\\(<https://github.com/search?q=org%3Agithub+sort%3Acreated-asc&type=Issues>) 匹配存储库中 GitHub由其拥有的问题，按升序创建日期排序（最旧到最新）。 |    |\n\n## 按相关性排序\n\n`sort:relevance` 限定符按搜索相关性排序。\n\n| 限定符                                                                                                                                          | 示例 |\n| -------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:relevance` 或 `sort:relevance-desc`                                                                                                     |    |\n| \\[                                                                                                                                           |    |\n| **org:github sort:relevance**]\\(<https://github.com/search?q=org%3Agithub+sort%3Arelevance&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按搜索相关性从高到低排序。 |    |\n\n## 按交互排序\n\n`sort:interactions` 限定符按最高反应和评论总数排序。\n\n| 限定符                                                                                                                                                                         | 示例 |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:interactions` 或 `sort:interactions-desc`                                                                                                                              |    |\n| \\[                                                                                                                                                                          |    |\n| **org:github sort:interactions**]\\(<https://github.com/search?q=org%3Agithub+sort%3Ainteractions&type=Issues>) 匹配由GitHub拥有的仓库中的议题，并按反应和评论总数从高到低排序。                          |    |\n| `sort:interactions-asc`                                                                                                                                                     |    |\n| \\[                                                                                                                                                                          |    |\n| **org:github sort:interactions-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Ainteractions-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按反应和评论总数从低到高排序。 |    |\n\n## 按反应排序\n\n`sort:reactions` 限定符按反应数量或类型排序。\n\n| 限定符                                                                                                                                                                                                                                   | 示例 |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:reactions` 或 `sort:reactions-desc`                                                                                                                                                                                              |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org：github sort：reactions**]\\(<https://github.com/search?q=org%3Agithub+sort%3Areactions&type=Issues>) 匹配存储库 GitHub中由其拥有的问题，按最高的反应数排序。                                                                                              |    |\n| `sort:reactions-asc`                                                                                                                                                                                                                  |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org：github sort：reactions-asc**]\\(<https://github.com/search?q=org%3Agithub+sort%3Areactions-asc&type=Issues>) 匹配存储库中 GitHub由其拥有的问题，按升序反应数排序（最少到最多）。                                                                                |    |\n| `sort:reactions-+1` 或 `sort:reactions-+1-asc`                                                                                                                                                                                         |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-+1-asc**]\\(<https://github.com/search?q=org%3Agithub+sort%3Areactions-%2B1-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按点赞（:+1:）反应数从少到多排序。                                                                    |    |\n| `sort:reactions-+1-desc`                                                                                                                                                                                                              |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-+1-desc**]\\(<https://github.com/search?q=org%3Agithub+sort%3Areactions-%2B1-desc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按点赞（:+1:）反应数量降序排序（从多到少）。                                                             |    |\n| `sort:reactions--1` 或 `sort:reactions--1-asc`                                                                                                                                                                                         |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org：github sort：reactions--1-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions--1-asc&type=Issues>) 匹配存储库中 GitHub拥有的问题，按向上拇指（：-1：）反应（最少到最多）排序。                                                      |    |\n| `sort:reactions--1-desc`                                                                                                                                                                                                              |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org：github sort：reactions--1-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions--1-desc&type=Issues>) 匹配存储库中 GitHub拥有的问题，按降拇指向下排序（：-1：）反应（最多到最少）。                                                   |    |\n| `sort:reactions-smile` 或 `sort:reactions-smile-asc`                                                                                                                                                                                   |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-smile-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-smile-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按笑脸（:smile:）反应数量升序排序（从少到多）。                                         |    |\n| `sort:reactions-smile-desc`                                                                                                                                                                                                           |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-smile-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-smile-desc&type=Issues>) 匹配 GitHub 拥有的仓库中的议题，并按笑脸（:smile:）反应数从高到低排序（从最多到最少）。                                     |    |\n| `sort:reactions-tada` 或 `sort:reactions-tada-asc`                                                                                                                                                                                     |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-tada-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-tada-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按“欢呼”（:tada:）回应数升序排序（从最少到最多）。                                         |    |\n| `sort:reactions-tada-desc`                                                                                                                                                                                                            |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-tada-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-tada-desc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按喝彩（:tada:）反应数量从高到低排序（从最多到最少）。                                      |    |\n| `sort:reactions-heart` 或 `sort:reactions-heart-asc`                                                                                                                                                                                   |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-heart-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-heart-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按爱心（:heart:）反应数升序排序（从最少到最多）。                                        |    |\n| `sort:reactions-heart-desc`                                                                                                                                                                                                           |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-heart-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-heart-desc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按心形（:heart:）反应数降序排序（从多到少）。                                        |    |\n| `sort:reactions-thinking_face` 或 `sort:reactions-thinking_face-asc`                                                                                                                                                                   |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **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>) 匹配由 GitHub 拥有的仓库中的议题，并按“thinking face”（:thinking\\_face:）回应数量升序排序（从少到多）。  |    |\n| `sort:reactions-thinking_face-desc`                                                                                                                                                                                                   |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **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>) 匹配由 GitHub 拥有的仓库中的议题，并按 thinking face（:thinking\\_face:）反应数量降序排序（从多到少）。 |    |\n| `sort:reactions-rocket` 或 `sort:reactions-rocket-asc`                                                                                                                                                                                 |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-rocket-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-rocket-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按火箭（:rocket:）反应数升序排序（从少到多）。                                       |    |\n| `sort:reactions-rocket-desc`                                                                                                                                                                                                          |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-rocket-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-rocket-desc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按火箭（:rocket:）反应数降序排序（从多到少）。                                     |    |\n| `sort:reactions-eyes` 或 `sort:reactions-eyes-asc`                                                                                                                                                                                     |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-eyes-asc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-eyes-asc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按 eyes（:eyes:）反应数升序排序（从少到多）。                                          |    |\n| `sort:reactions-eyes-desc`                                                                                                                                                                                                            |    |\n| \\[                                                                                                                                                                                                                                    |    |\n| **org:github sort:reactions-eyes-desc**]\\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+sort%3Areactions-eyes-desc&type=Issues>) 匹配由 GitHub 拥有的仓库中的议题，并按 eyes（:eyes:）反应数从高到低排序（从最多到最少）。                                    |    |\n\n## 按作者日期排序\n\n`sort:author-date` 限定符按作者日期降序或升序排序。\n\n| 限定符                                                                                                                                                                                   | 示例 |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:author-date` 或 `sort:author-date-desc`                                                                                                                                          |    |\n| \\[                                                                                                                                                                                    |    |\n| **feature org：github sort：author-date**]\\(<https://github.com/search?utf8=%E2%9C%93&q=feature+org%3Agithub+sort%3Aauthor-date&type=Commits>) 匹配包含存储库中“ GitHubfeature”一词的提交，按降序作者日期排序。 |    |\n| `sort:author-date-asc`                                                                                                                                                                |    |\n| \\[                                                                                                                                                                                    |    |\n| \\*\\*                                                                                                                                                                                  |    |\n| `feature org:github sort:author-date-asc`                                                                                                                                             |    |\n| \\*\\*                                                                                                                                                                                  |    |\n| ]\\(<https://github.com/search?utf8=%E2%9C%93&q=feature+org%3Agithub+sort%3Aauthor-date-asc&type=Commits>) 匹配由 GitHub 拥有的存储库中包含“feature”一词的提交，并按作者日期升序排序。                              |    |\n\n## 按提交者日期排序\n\n`sort:committer-date` 限定符按提交者日期降序或升序排序。\n\n| 限定符                                                                                                                                                                                         | 示例 |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |\n| `sort:committer-date` 或 `sort:committer-date-desc`                                                                                                                                          |    |\n| \\[                                                                                                                                                                                          |    |\n| **feature org：github sort：commiter-date**]\\(<https://github.com/search?utf8=%E2%9C%93&q=feature+org%3Agithub+sort%3Acommitter-date&type=Commits>) 匹配包含存储库中“ GitHubfeature”一词的提交，按降序提交者日期排序。 |    |\n| `sort:committer-date-asc`                                                                                                                                                                   |    |\n| \\[                                                                                                                                                                                          |    |\n| \\*\\*                                                                                                                                                                                        |    |\n| `feature org:github sort:committer-date-asc`                                                                                                                                                |    |\n| \\*\\*                                                                                                                                                                                        |    |\n| ]\\(<https://github.com/search?utf8=%E2%9C%93&q=feature+org%3Agithub+sort%3Acommitter-date-asc&type=Commits>) 匹配由 GitHub 拥有的仓库中包含“feature”一词的提交，并按提交者日期升序排序。                                 |    |\n\n## 按更新日期排序\n\n`sort:updated` 限定符按项最近更新日期排序。\n\n| 限定符                                                         | 示例 |\n| ----------------------------------------------------------- | -- |\n| `sort:updated` 或 `sort:updated-desc`                        |    |\n| **feature sort:updated** 匹配包含单词“feature”的存储库，按最近更新日期排序。     |    |\n| `sort:updated-asc`                                          |    |\n| **feature sort:updated-asc** 匹配包含单词“feature”的存储库，按最远更新日期排序。 |    |\n\n## 其他阅读材料\n\n* [关于在GitHub上的搜索](/zh/search-github/getting-started-with-searching-on-github/about-searching-on-github)\n* [筛选和搜索议题以及拉取请求](/zh/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests)"}