UNPKG

forto-sorter

Version:

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

9 lines (8 loc) 364 B
import { ISortByObjectSorter } from './../types/sortByObjectSorter'; import { IOrder } from './../types/order'; import { ISortBy } from './../types/sortBy'; export declare const unpackObjectSorter: (sortByObj: ISortByObjectSorter<any>) => { order: IOrder; sortBy: boolean | ISortBy<any>; comparer: (a: any, b: any, order: IOrder) => number; };