LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


sort(order, comparer)

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

Parameters

ParamTypeDetails
orderStringSpecifies the sort order
comparer (optional)FunctionA callback function with custom sort operation

Return Value

This method does not return a value.

Remarks

The order parameter can accept one of the following IntegralUISortOrder values:

  • None - sorting is disabled
  • Ascending - items are sorted from A to Z
  • Descending - items are sorted from Z to A

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

A call to this method will trigger change event, with event data type set to 'sorting'.

Version Information

Supported in: v1.1.

See Also