sort
Sorts lists and record fields.
Description
The sort
function takes either a list or record as input, ordering lists by
value and records by their field name.
xs: list|record
The list or record to sort.
Examples
Sort values in a list
Sort a record by its field names
Observe that the nested record is not sorted. Use b = b.sort()
to sort it
manually.