customSort(sortHandler, context)
Sort the children in the group according to custom sort function.
The sortHandler
is provided the two parameters: the two children involved in the comparison (a and b).
It should return -1 if a > b
, 1 if a < b
or 0 if a === b
.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
sortHandler | function | The custom sort function. | |
context | object | <optional> | The context in which the sortHandler is called. |
- Inherited From
- Source code: core/Group.js (Line 1895)
Please login to continue.