export type SortDir = "asc" | "desc"; export type Sort = { dir: SortDir; isDate?: boolean; key: keyof T; }; type GetValueFunction = (c: T) => unknown; export declare function applySorts(records: T[], sorts: Sort[]): T[]; export declare function sort(collection: T[], getValue: GetValueFunction | string, order: SortDir, isDate?: boolean): T[]; export {}; //# sourceMappingURL=sort.d.ts.map