LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


sort(name, column, order, comparer)

Reorders all rows in tree structure either in ascending or descending order.

Parameters

ParamTypeDetails
nameStringThe value of name attribute of the Grid directive
columnObjectThe column by which rows will be sorted
orderStringSpecifies the sort order
comparer (optional)FunctionA callback function with custom sort operation

Return Value

This method does not return a value.

Remarks

This method is part of IntegralUIGridService.

The order parameter can accept one of the following values:

  • 'none' - sorting is disabled
  • 'ascending' - rows are sorted in ascending order
  • 'descending' - rows are sorted in descending order

When comparer parameter is provided, it will replace the default sorting algorithm with a custom sorting operation set in your app code.

Version Information

Supported in: v2.1.

Articles & Samples

See Also