![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | lib/ | 2 years ago | - | |
![]() | LICENSE | 9 years ago | 1.1K | |
![]() | README.md | 9 years ago | 808 | d768d73 docs [كارل مبارك] |
![]() | package.json | 2 years ago | 1.6K | 3e510ca test new git [كارل مبارك] |
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