Sorting lists in Python

sl = sorted([2, 4, 1, 3], reverse=True)

reverse is optional.

See also