1.0.0 • Published 3 years ago

@mozartdev/lazy-sort v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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.