uaveiro-leci/1ano/fp/extra3/ex06.py

2 lines
66 B
Python

stocks2 = sorted(stocks, key=lambda stock: (stock[0], -stock[4]))