Sorting
Lists can be sorted according to arbitrary criteria. Lists of primitive values can be sorted simply by their intrinsic order, see Comparison operators. You can define your own comparison functions for sorting arbitrary objects.
Lists can be sorted according to arbitrary criteria. Lists of primitive values can be sorted simply by their intrinsic order, see Comparison operators. You can define your own comparison functions for sorting arbitrary objects.