Please be gentle I'm still learning Python. I've an example where
pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')]
pairs.sort(key=lambda pair: pair[1])
The result is
[(4, 'four'), (1, 'one'), (3, 'three'), (2, 'two')]
Can you please help explain why this is the sequence?