Sorting
The lists data structure has an associated sort method that orders items in descending order.
Alternatively, sorting can be done using the sorted method which retuns a copy of the list in sorted order
To change the order of the items in descending order, the reverse parameter can be used.
A function can also be applied to elements before they become sorted.