sort

lst = sorted(lst, key=lambda x: x[0]) ๊ฐ ๋ฐฐ์—ด ์ฒซ๋ฒˆ์งธ ๊ธฐ์ค€์œผ๋กœ ์ •๋ ฌ
lst = sorted(lst, key=lambda x: x[1]) ๊ฐ ๋ฐฐ์—ด ๋‘๋ฒˆ์งธ ๊ธฐ์ค€์œผ๋กœ ์ •๋ ฌ

list.sort(reverse=True)

Last updated