Nagging Mario's Princess
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

alpha-sort

2.0.1 • Public • Published

alpha-sort Build Status

Alphabetically sort an array of strings

With correct sorting of unicode characters.

Install

$ npm install --save alpha-sort

Usage

const alphaSort = require('alpha-sort');
 
['b', 'a', 'c'].sort(alphaSort.asc);
//=> ['a', 'b', 'c']

API

alphaSort.asc

Ascending sort.

alphaSort.desc

Descending sort.

Related

License

MIT © Sindre Sorhus

install

npm i alpha-sort

Downloadsweekly downloads

1,742

version

2.0.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar