Sha256: ae5474721e24dfcb1d158d6f75e0d3ece075c9fd1d5930a515920f6ee50ccf59

Contents?: true

Size: 808 Bytes

Versions: 32

Compression:

Stored size: 808 Bytes

Contents

# alphanum-sort
[![Build Status](https://travis-ci.org/TrySound/alphanum-sort.svg?branch=master)](https://travis-ci.org/TrySound/alphanum-sort)

> Alphanumeric sorting algorithm

## Install

With [npm](https://npmjs.org/package/alphanum-sort) do:

```
npm i alphanum-sort -S
```

## Example

```js
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](https://github.com/trysound)

Version data entries

32 entries across 31 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/alphanum-sort/README.md
disco_app-0.18.0 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.18.2 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.16.1 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.15.2 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.18.4 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.18.1 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.14.0 test/dummy/node_modules/alphanum-sort/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/alphanum-sort/README.md
tang-0.2.1 spec/tang_app/node_modules/alphanum-sort/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/alphanum-sort/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/alphanum-sort/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/alphanum-sort/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/alphanum-sort/README.md
tang-0.2.0 spec/tang_app/node_modules/alphanum-sort/README.md
tang-0.1.0 spec/tang_app/node_modules/alphanum-sort/README.md
tang-0.0.9 spec/tang_app/node_modules/alphanum-sort/README.md
enju_library-0.3.8 spec/dummy/node_modules/alphanum-sort/README.md
jester-data-8.0.0 node_modules/alphanum-sort/README.md