Sort
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Contents
Description
Sorts the elements of a one-dimensional array in ascending order.
Syntax
array.Sort
Part | Description |
---|---|
array | The array to be sorted. |
Notes
The Sort method works with string, single, double, and all the integer data type arrays only. It accepts only one-dimensional arrays.
Examples
This example sorts the aNames array.
aNames.Sort
|
See Also
Dim statement; Array, Join, Split, Ubound functions; Append, IndexOf, Insert, Pop, Redim, Remove, Shuffle, Sortwith methods; ParamArray keyword.