1.0.1 • Published 7 years ago

natural-sort-lx v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

natural-sort

Sort criteria function that sorts strings in a natural order i.e. treats numbers in their numeric order.

##usage

var naturalsort = require('natural-sort-lx');
var strings = ['d', 'c', 'a11', 'a2'];
strings.sort(naturalsort);
console.log(strings);
// output: ['a2', 'a11', 'c', 'd']
1.0.1

7 years ago

1.0.0

7 years ago