@profesia/sorter
v1.0.0
Published
JavaScript Sorter (Handling Google Chrome's Unstable Sort)
Downloads
3
Readme
sorter
Install
NPM
Install the package:
npm install @profesia/sorter --save-dev
Then import it in your project
import sorter from '@profesia/sorter'
Usage
Simply use it like so:
sorteredItems: sorter.sort(items, (itemA, itemB) => {
if (itemA < itemB)
return -1
if (itemA > itemB)
return 1
return 0
});
FAQ
- How can I provide feedback? - Send an email to [email protected]; any feedback is appreciated.
Release History
- 1.0.0 Initial release