/ stream.nieuweinstituut.nl / node_modules / alphanum-sort /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]lib/2 years ago -  
[   ]LICENSE9 years ago1.1K 
[TXT]README.md9 years ago808 d768d73 docs [كارل مبارك]
[   ]package.json2 years ago1.6K3e510ca test new git [كارل مبارك]
README.md

alphanum-sort

Build Status

Alphanumeric sorting algorithm

Install

With npm do:

npm i alphanum-sort -S

Example

var sort = require('alphanum-sort');

var result = sort(['item20', 'item19', 'item1', 'item10', 'item2']);
// ['item1', 'item2', 'item10', 'item19', 'item20']

API

alphanumSort(array, options)

options

insensitive

Type: Boolean Default: false

Compares items case insensitively

sign

Type: Boolean Default: false

Allows + and - characters before numbers

License

MIT © Bogdan Chadkin

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80