Sort

From Xojo Documentation

Revision as of 18:53, 19 November 2009 by WikiSysop (talk) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!


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, InsertPop, Redim, Remove, Shuffle, Sortwith methods; ParamArray keyword.