Skip to content

Commit

Permalink
feat: sort paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Mar 12, 2019
1 parent ded022b commit aefa48d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export default class Generator {
onlyFiles: false,
},
)
paths.sort(
(a, b) => a.localeCompare(b, 'en', { sensitivity: 'base' }),
)
const codes = paths
.filter(path => path !== currentFile)
.map(path => {
Expand Down

0 comments on commit aefa48d

Please sign in to comment.