LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


sort(name, order, comparer)

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

Parameters

ParamTypeDetails
nameStringThe value of name attribute of the TreeView directive
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 IntegralUITreeViewService.

The order parameter can accept one of the following values:

  • 'none' - sorting is disabled
  • 'ascending' - items are sorted in ascending order
  • 'descending' - items 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