Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #227 from Cottser/safari-commit-message
Browse files Browse the repository at this point in the history
Fix incorrect order of commit message in Safari
  • Loading branch information
sun committed Aug 28, 2014
2 parents 3c4edcb + d00ff94 commit 34c34cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/plugins/commit.message.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Drupal.behaviors.dreditorCommitMessage = {
temp.push([ counts[key], key ]);
}
temp.sort(function (a, b) {
return a[0] > b[0];
return a[0] - b[0];
});
// Return the list of values, ordered by counts (descending).
var result = [];
Expand Down

0 comments on commit 34c34cb

Please sign in to comment.