Sort issue with multiple keys #3

Open
wants to merge 1 commit into
from
View
@@ -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);
@aarongloege
aarongloege Aug 30, 2011

This will account for sort columns that are descending by applying concat to the records array (if descending) instead of the sorted array (is ascending -- default).

});
//update the main collection