orders = [("A", 3, 10), ("B", 1, 20)]

orders.sort(key=lambda x: x[2], reverse=True)

for o in orders:
    print(o[0], end=" -> ")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: