Advanced User Interface Controls and Components
Reorders all rows in tree structure either in ascending or descending order.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the Grid directive |
column | Object | The column by which rows will be sorted |
order | String | Specifies the sort order |
comparer (optional) | Function | A callback function with custom sort operation |
This method does not return a value.
This method is part of IntegralUIGridService.
The order parameter can accept one of the following values:
When comparer parameter is provided, it will replace the default sorting algorithm with a custom sorting operation set in your app code.
Supported in: v2.1.
Learn how to sort rows in AngularJS Grid using built-in sorting or by creating custom sort operations. Whenever a column is clicked, it will sort rows in ascending or descending order.