👯 Easily sort array of objects with multiple criteria.
npm install @swyg/sorteo👯 Easily sort an array of objects with multiple criteria.
⚡ Combine it with @swyg/memo for blazing fast performance!
⚠️ Not to be confused with the Spanish word "sorteo": https://m.interglot.com/es/en/Sorteo
Installation
------------
npm install @swyg/sorteo
yarn install @swyg/sorteo
Usage
-----
Functions:
- getCompareByStringFn
- getCompareByNumberFn
- getCompareByDateFn
TODO
----
- Configure how NaN, undefined, null and/or '' are handled (e.g. always at the end, always at the start, depending on order param...).