UNPKG

forto-sorter

Version:

Fast and powerful array sorting. Sort by any property in any direction with easy to read syntax.

12 lines (11 loc) 568 B
* Sort flat arrays * Sort array of objects by one or more properties * Sort in multiple directions * [Natural sort](#natural-sorting--language-sensitive-sorting) support * Support for [custom sort](#custom-sorting) instances * Easy to read syntax * [Faster](#benchmark) than other popular sort alternatives * Undefined and null values are always sorted to bottom (with default comparer) * TypeScript support * Packed with features in small footprint with 0 dependencies (~ 850 bytes gzip) * Compatible with any JS environment as Node, Web, etc..