UNPKG

forto-sorter

Version:

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

5 lines (4 loc) 274 B
import { IOrder } from './../types/order'; import { IAnySortBy } from './../types/anySortBy'; import { IComparer } from './../interfaces/comparer'; export declare function sortStrategy(sortBy: IAnySortBy, comparer: IComparer, order: IOrder): (a: any, b: any) => number;