Sort values in an array.
Data[] sort(Data list[], TypeField field, optional bool ascending)
Sort an array of data instances into ascending or descending order by one of its fields.
list The array to sort.
field The field to use as the sort order.
ascending Set to true for sort in ascending order, or false for descending order.
returns: The sorted array.