orderBy
Orders the specified tree according to the provided sort descriptors.
Parameters
data
any[]
The data that will be sorted.
descriptors
SortDescriptor[]
The descriptors by which the data will be sorted.
subItemsField
string
The field which points to the subitems collection of each data item.
Returns
any[]
- The sorted data.