Alphabetically sort an array of strings
With correct sorting of unicode characters.
$ npm install --save alpha-sort
const alphaSort = require('alpha-sort');
['b', 'a', 'c'].sort(alphaSort.asc);
//=> ['a', 'b', 'c']
Ascending sort.
Descending sort.
- num-sort - Sort an array of numbers
MIT © Sindre Sorhus