@profesia/sorter

1.0.0 • Public • Published

sorter

npm npm total

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 vrtich@profesia.sk; any feedback is appreciated.

Release History

  • 1.0.0 Initial release

Readme

Keywords

Package Sidebar

Install

npm i @profesia/sorter

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.79 kB

Total Files

3

Last publish

Collaborators

  • w3b_designer