UNPKG

735 BTypeScriptView Raw
1import { SortType } from '../types/sort.type';
2import { SortDirection } from '../types/sort-direction.type';
3import { SortPropDir } from '../types/sort-prop-dir.type';
4/**
5 * Gets the next sort direction
6 */
7export 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 */
12export 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 */
17export declare function sortRows(rows: any[], columns: any[], dirs: SortPropDir[]): any[];