Skip to content

Commit

Permalink
fix: localeCompare names instead of greater-than
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Sep 5, 2019
1 parent 3efea4b commit ca5b4d3
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 @@ -109,7 +109,7 @@ function groupByAuthor(modules) {
author,
modules: modules.sort()
}))
.sort((a, b) => a.author > b.author);
.sort((a, b) => a.author.localeCompare(b.author));
}

module.exports = ({ whitelist } = {}) => {
Expand Down

0 comments on commit ca5b4d3

Please sign in to comment.