Skip to content

Commit

Permalink
make default group comparer function more robust - see pull request: …
Browse files Browse the repository at this point in the history
…fix sort order in Chrome #1019
  • Loading branch information
6pac committed Mar 12, 2015
1 parent 61a3bb9 commit c3e394a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion slick.dataview.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
var groupingInfoDefaults = {
getter: null,
formatter: null,
comparer: function(a, b) { return a.value - b.value; },
comparer: function(a, b) {
return (a.value === b.value ? 0 :
(a.value > b.value ? 1 : -1)
);
},
predefinedValues: [],
aggregators: [],
aggregateEmpty: false,
Expand Down

0 comments on commit c3e394a

Please sign in to comment.