sort-array
sort-array copied to clipboard
Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order
Need a `options.NaNrank` option - same functionality as [`options.undefinedRank` and `options.nullRank`](https://github.com/75lb/sort-array#sortarrayarray-options--array-) but for `NaN` values.
Low priority but would be nice to have some input validation which ensures the config supplied is valid. E.g. ensure a `customOrder` is either a function or array of values....
Update `customOrders` to also accept a [standard sort compare function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#parameters). E.g. ```js sortArray(partsOfTheDay, { order: 'time', customOrders: { time: (a, b) => return a > b ? 1 : -1...