SortArray
Category: Script
/ Arrays
Since engine version: 5.4 OC
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.
Sven2, 2012-12