Skip to content

Commit

Permalink
(GH-1101) Search results by relevance by default
Browse files Browse the repository at this point in the history
This ensures the order you see listed on the website matches the order
that you get results back when running choco search/choco list.
  • Loading branch information
ferventcoder committed May 1, 2017
1 parent 719d46a commit c487c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey/infrastructure.app/nuget/NugetList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static IQueryable<IPackage> execute_package_search(ChocolateyConfigurati

results = configuration.ListCommand.OrderByPopularity ?
results.OrderByDescending(p => p.DownloadCount).ThenBy(p => p.Id)
: results.OrderBy(p => p.Id) ;
: results;

return results;
}
Expand Down

0 comments on commit c487c53

Please sign in to comment.