CBA_fnc_sortNestedArray

Description

Used to sort a nested array from lowest to highest using quick sort.

Sorting is based on the specified column, which must have numerical data.  Original array is modified.

Parameters

_arrayNested array to be sorted ARRAY
_indexSub array item index to be sorted on <NUMBER>
_ordertrue: ascending, false: descending (optional, default: true) <BOOLEAN>

Example

_array = [_array, 1] call CBA_fnc_sortNestedArray

Returns

Sorted array ARRAY

Author

commy2

Array to read from [Array]
Close