int [] sort(int values[])
float [] sort(float values[])
string [] sort(string values[])
Returns a version of the given array sorted in increasing order.
Examples ¶
Sort an array of numbers in descending order
int numbers[] = {5, 2, 90, 3, 1}; int descending_nums[] = reverse(sort(numbers)); // {90, 5, 3, 2, 1}
See also |