1.0.1 • Published 3 years ago

noswap-sort v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

noswap-sort

noswap is a sorting algorithm that takes advantage of javascript's array functionality. It works completely without swapping or comparing numbers, which makes it very fast and lightweight.

Installation

Use the package manager npm to install noswap

npm i noswap-sort

Usage

const nsort = require('noswap-sort');

var list = [5, 2, 1000, 20, 1];

list = nsort(list);

//list = [ 1, 2, 5, 20, 1000 ]

Contributing

Contributions are welcome, but please open an issue if you want to make any major changes.

License

MIT