Sorting an array is to be understood as sorting the individual elements of an array.
Syntax:
Function Sort ( [ Mode As Integer ] ) As NatDataTyp[]
The Mode argument is optional and can accept one of the following constants:
gb.Ascent → Sort ascending (a...z), standard
gb.Descent → Sorting in descending order (z...a)
Caution is advised when using the Sort () method with multidimensional arrays. The sort(…)method for arrays is very simple and is characterized by the fact that it sorts the elements of the array linearly - regardless of the number of dimensions.
Sorting derived arrays requires the use of the special sorting method for objects: _compare (aO AS Object[]), whose internal source code has to be adjusted individually.