Skip to content

Commit

Permalink
docs: more natural sort in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Sep 25, 2021
1 parent 56a5e18 commit 20a57fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ReadmePlugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ function write() {
o.url = `/dist/${encodeURI(o.file.replace(/\s/g, '-'))}.js`;
return o;
})
.sort((a, b) => {
return a.file < b.file ? -1 : a.file > b.file ? 1 : 0;
});
.sort((a, b) => a.file.localeCompare(b.file, 'en', { sensitivity: 'base', ignorePunctuation: true }));
fs.writeFileSync(
'README.md',
`# bitsy hacks
Expand Down

0 comments on commit 20a57fa

Please sign in to comment.