The Sort function sorts the items.
This function uses the object reference values.
Syntax
Array.Sort(
Integer iStart = 0,
Integer iEnd = -1)
Integer iStart = 0,
Integer iEnd = -1)
Parameters
| iStart | Index of the first item. | Optional |
|---|---|---|
| iEnd | Index of the last item (excluded). -1: Last array index (included). | Optional |
Return value
The Sort function has no return values.
Example
// Sort all
myArray.Sort()
myArray.Sort()