UNPKG

@angular-generic-table/core

Version:
12 lines (11 loc) 556 B
import { PipeTransform } from '@angular/core'; import { GtConfigField } from '../interfaces/gt-config-field'; import { GtRow } from '../interfaces/gt-row'; export declare class GtOrderByPipe<R extends GtRow> implements PipeTransform { static _orderByComparator(a: any, b: any): number; /** Return property */ private getProperty; /** Return sort function */ private getSortFunction(field); transform(input: any, sortByProperties: Array<string>, fields: GtConfigField<R, any>[], refreshSorting: boolean, refreshData: number): any; }