Skip to content

Commit

Permalink
Merge pull request #26 from Marsup/highest-sort
Browse files Browse the repository at this point in the history
Fix sorting of highest
  • Loading branch information
jonschlinkert committed Feb 21, 2015
2 parents dea7ff4 + fb2285a commit f0d6748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function bullets(arr, opts) {

function highest(arr) {
return arr.slice().sort(function(a, b) {
return a.lvl > b.lvl;
return a.lvl - b.lvl;
})[0].lvl;
}

Expand Down

0 comments on commit f0d6748

Please sign in to comment.