@mozartdev/lazy-sort

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i @mozartdev/lazy-sort

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.44 kB

Total Files

6

Last publish

Collaborators

  • mozartdev