igniteui-react-grids
Version:
Ignite UI React grid components.
10 lines (9 loc) • 438 B
TypeScript
import { IgrGridBaseDirective } from "./igr-grid-base-directive";
import { IgrSortingExpression } from "./igr-sorting-expression";
/**
* Represents a sorting strategy for the grid data
* Contains a single method sort that sorts the provided data based on the given sorting expressions
*/
export interface IgrGridSortingStrategy {
sort(data: any[], expressions: IgrSortingExpression[], grid: IgrGridBaseDirective): any[];
}