• sorted( () ), key=int, reverse=True)

 

But how? I don't understand.

sorted((2.2, 5.6, 5.9), key=int, reverse=True) [5.6, 5.9, 2.2] sorted((2.2, 5.6, 5.9), key=int) [2.2, 5.6, 5.9]

.