Sort values in an array, by multiple fields.
Data[] sort(Data array[],
SortField fields[])
Sort an array of data instances into ascending or descending order by one or more of its fields. The entire input array is sorted by the first given sort field; the next sort field is then used to sub-sort cells where the first field has an equal value, and so on.
array The array to sort.
fields The fields to use as the sort order.
returns: The sorted array.