peach a19a732be8 commit message | il y a 2 ans | |
---|---|---|
.. | ||
lib | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
package.json | il y a 2 ans |
Alphanumeric sorting algorithm
With npm do:
npm i alphanum-sort -S
var sort = require('alphanum-sort');
var result = sort(['item20', 'item19', 'item1', 'item10', 'item2']);
// ['item1', 'item2', 'item10', 'item19', 'item20']
Type: Boolean
Default: false
Compares items case insensitively
Type: Boolean
Default: false
Allows +
and -
characters before numbers
MIT © Bogdan Chadkin