1 | import { SortType } from '../types/sort.type';
|
2 | import { SortDirection } from '../types/sort-direction.type';
|
3 | import { SortPropDir } from '../types/sort-prop-dir.type';
|
4 | /**
|
5 | * Gets the next sort direction
|
6 | */
|
7 | export declare function nextSortDir(sortType: SortType, current: SortDirection): SortDirection | undefined;
|
8 | /**
|
9 | * Adapted from fueld-ui on 6/216
|
10 | * https://github.com/FuelInteractive/fuel-ui/tree/master/src/pipes/OrderBy
|
11 | */
|
12 | export declare function orderByComparator(a: any, b: any): number;
|
13 | /**
|
14 | * creates a shallow copy of the `rows` input and returns the sorted copy. this function
|
15 | * does not sort the `rows` argument in place
|
16 | */
|
17 | export declare function sortRows(rows: any[], columns: any[], dirs: SortPropDir[]): any[];
|