Stalinsort
Returns the stalinsorted array.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.
My inspiration comes from this great post about a new sorting algorithm with O(n) complexity, and I had to share it so everyone can use this for free, as stalin wished us to share his great invention.
Install
Install with npm:
$ npm install --save is-odd
Usage
Works with strings or numbers.
const sort = ; console; //=> [ 10, 11, 14 ]console; //=> [ 99 ] console; //=> falseconsole; //=> false
About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test