ARRAYSORT Function -- Syntax and Examples

ARRAYSORT(stem, [first], [n], [[start], [length], [order], [type],...])


performs an ascending ("A") character ("C") sort on all the elements of the "randnames." array starting with the first record. Sorting is done on the first twenty-five characters of each element.

If arraysort("randnums.","1",,"1","10","A","N") Then Do Say "Array successfully sorted." End Else Do Say "Sort unsuccessful; check for non-numeric values." End

performs an ascending sort on a randomly ordered array of (presumably) numeric values