From ae9e39596eb3086bff9e7bc9079f43164075e230 Mon Sep 17 00:00:00 2001 From: shinturtle Date: Tue, 30 Aug 2011 17:06:11 -0500 Subject: [PATCH] Fix sort issue with multiple keys and one being flagged desc --- jlinq.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlinq.js b/jlinq.js index e8e0be6..22d4822 100644 --- a/jlinq.js +++ b/jlinq.js @@ -712,7 +712,7 @@ var jl; framework.util.each(groups, function(group) { var listing = fields.slice(); var records = framework.util._performSort(group, listing, ignoreCase); - sorted = sorted.concat(records); + sorted = (desc) ? records.concat(sorted) : sorted.concat(records); }); //update the main collection