alphanum-sort

WebJar for alphanum-sort

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

alphanum-sort
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

alphanum-sort
WebJar for alphanum-sort
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/TrySound/alphanum-sort

Download alphanum-sort

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/alphanum-sort/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>alphanum-sort</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/alphanum-sort/
implementation 'org.webjars.npm:alphanum-sort:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/alphanum-sort/
implementation ("org.webjars.npm:alphanum-sort:1.0.2")
'org.webjars.npm:alphanum-sort:jar:1.0.2'
<dependency org="org.webjars.npm" name="alphanum-sort" rev="1.0.2">
  <artifact name="alphanum-sort" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='alphanum-sort', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "alphanum-sort" % "1.0.2"
[org.webjars.npm/alphanum-sort "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.2