From c487c53c09019986a55f586d65da89e47eb52643 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 27 Apr 2017 17:41:01 -0500 Subject: [PATCH] (GH-1101) Search results by relevance by default This ensures the order you see listed on the website matches the order that you get results back when running choco search/choco list. --- src/chocolatey/infrastructure.app/nuget/NugetList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey/infrastructure.app/nuget/NugetList.cs b/src/chocolatey/infrastructure.app/nuget/NugetList.cs index 71d5a86ef9..34775d39dd 100644 --- a/src/chocolatey/infrastructure.app/nuget/NugetList.cs +++ b/src/chocolatey/infrastructure.app/nuget/NugetList.cs @@ -132,7 +132,7 @@ private static IQueryable 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; }