caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
lib | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
package.json | 8 months ago |
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