forto-sorter
Version:
Fast and powerful array sorting. Sort by any property in any direction with easy to read syntax.
7 lines (6 loc) • 505 B
TypeScript
import { IOrder } from './../types/order';
import { ISortBy } from './../types/sortBy';
import { IAnySortBy } from './../types/anySortBy';
import { ISortByObjectSorter } from './../types/sortByObjectSorter';
import { IComparer } from './../interfaces/comparer';
export declare const multiPropertySorterProvider: (defaultComparer: IComparer) => (sortBy: IAnySortBy, sortByArr: ISortBy<any>[] | ISortByObjectSorter<any>[], depth: number, order: IOrder, comparer: IComparer, a: any, b: any) => number;