SortArray()

Syntax

SortArray(ArrayName(), Options [, Start, End])
Description
Sort the specified array, according to the given 'Options'. The array can be of one of basic type: byte, word, long, string or float. An optional 'Start' and 'End' range index can be specified.

'Options' can take the following values:

0: Sort the array in ascending order (low values first)
1: Sort the array in descending order (high values first)
2: Sort a string array without case sensitive (a=A, b=B etc..) in ascending order
3: Sort a string array without case sensitive (a=A, b=B etc..) in descending order

Note: If an array is not fully filled then null elements will be sorted first in ascending order and last in descending order.

Supported OS

Windows, Linux, MacOS X

Sort Index - SortList() ->