From ba9a812d87cf403489880b542e52a343b4b653ee Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 18 Sep 2014 16:02:50 -0700 Subject: [PATCH] #20366: Fixing sort criteria order Work Item: 20366 --- .../Modules/Orchard.Projections/Services/ProjectionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Projections/Services/ProjectionManager.cs b/src/Orchard.Web/Modules/Orchard.Projections/Services/ProjectionManager.cs index 241e4f271..687e0d246 100644 --- a/src/Orchard.Web/Modules/Orchard.Projections/Services/ProjectionManager.cs +++ b/src/Orchard.Web/Modules/Orchard.Projections/Services/ProjectionManager.cs @@ -129,7 +129,7 @@ namespace Orchard.Projections.Services { var contentItems = new List(); // aggregate the result for each group query - foreach(var contentQuery in GetContentQueries(queryRecord, queryRecord.SortCriteria)) { + foreach(var contentQuery in GetContentQueries(queryRecord, queryRecord.SortCriteria.OrderBy(sc => sc.Position))) { contentItems.AddRange(contentQuery.Slice(skip, count)); }