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