1.0.0 • Published 3 years ago
@mozartdev/lazy-sort v1.0.0
lazy-sort (experimental)
This library is to help sorting data in JavaScript.
Installation
Using npm:
$ npm i lazy-sort
How to use
Node Js:
const lazySort = require('lazy-sort');
...
// Sort by ascending.
const sortByAsc = lazySort(data);
// Sort by descending.
const sortByDesc = lazySort(data, false);
Why lazy-sort?
lazy-sort is a easy way to sorting data in JavaScript, and it will return a new array.
1.0.0
3 years ago