Sorts the given nested array in either ascending or descending order based on the numerical value at specified index of sub arrays.
Original array is modified.
_array | Nested array to be sorted ARRAY |
_index | Sub array item index to be sorted on <NUMBER> |
_order | true: ascending, false: descending (optional, default: true) <BOOLEAN> |
_array = [_array, 1] call CBA_fnc_sortNestedArray
Sorted array ARRAY
commy2, mharis001