Sorts a list or vector.
sort(List | Range | Vector)
sort(List | Range | Vector, Function)
Sorts a list, range or vector in ascending order.
Given a list, range or vector, and a function previously defined, sorts the elements in ascending order. The comparison is specified by the function.