Category: Script
/ Arrays
Since engine version: 4.0 OC
SortArray
Description
Sorts an array by its elements. Elements should be either all strings or all integers.
Syntax
bool SortArray(array array2sort, bool descending);
Parameters
- array2sort:
- Array that is to be sorted
- descending:
- If true, elements are sorted in descending (highest to lowest) order. Otherwise ascending order.
See also: SortArrayByArrayElement, SortArrayByProperty