79669051

Date: 2025-06-17 12:25:13
Score: 1
Natty:
Report link

Change your lambda to return a tuple of the first and second elements - Python will automatically sort by the first value, and use the second one

sorted_list = sorted(mix_data, key=lambda x: (x[0], x[1]))

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: OUTATIME121GW