Availability
This routine is available since katl-commons 3.0.1.
Syntax:
arrayStructSort(arr, field)
Description:
Sorts the elements from an array by their specified field. Works only with arrays that contain structuresParameters:
Parameter name | Type | Required | Description |
---|---|---|---|
arr | array | Yes | The array, must be a struct array. |
field | string | Yes | The field to be sorted by |
Return Type:
array
See Also: