Spaces:
Sleeping
Sleeping
|
Download node_modules/alphanum-sort/README.md from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/alphanum-sort/README.md
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/alphanum-sort/README.md
-
curl -L -o README.md https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/alphanum-sort/README.md
808 Bytes
alphanum-sort
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