Sorts a one dimensional array containing arbitrary type values.
Syntax
Function Sort(array, permutations)
Parameters
one dimensional variant array ary - an array to sort boolean permutations - controls how to return the result. See the Return value section.
Return value
one dimensional array - permutations = true: the return value is an array of integer indices corresponding to the sorting of the input array; permutations = false: the return value is a sorted array of original values