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