Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sjpsega/underscore into s…
Browse files Browse the repository at this point in the history
…ort-by
  • Loading branch information
braddunbar committed Aug 9, 2013
2 parents d67868d + 955d3c7 commit 9e69394
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@
criteria : iterator.call(context, value, index, list)
};
}).sort(function(left, right) {
if(left === right){
return 0;
}
var a = left.criteria;
var b = right.criteria;
if (a !== b) {
Expand Down

0 comments on commit 9e69394

Please sign in to comment.