Represents a class extending the sorting class Provides custom data record sorting.

IgxDataRecordSorting

new IgxDataRecordSorting(): IgxDataRecordSorting

Returns IgxDataRecordSorting

Inherited from: IgxSorting

Sorts the provided data based on the given sorting expressions. data: The array of data to be sorted. expressions: An array of sorting expressions that define the sorting rules. The expression contains information like file name, whether the letter case should be taken into account, etc. grid: (Optional) The instance of the grid where the sorting is applied. Returns a new array with the data sorted according to the sorting expressions.

sort(data: any[], expressions: ISortingExpression<any>[], grid: GridTypeBase): any[]

Defined in projects/igniteui-angular/core/src/data-operations/grid-sorting-strategy.ts:90

Parameters

Returns any[]