Contact: aviboots(AT)netvision.net.il
36,644 questions
47,922 answers
573 users
list2D = [ [9, 7, 8, 4], [3, 1, 2, 0], [6, 4, 5, 3] ] # Sorting rows list2D.sort(key=lambda x: x[1]) print(list2D) ''' run: [[3, 1, 2, 0], [6, 4, 5, 3], [9, 7, 8, 4]] '''