I have this list like this:
list1 = [["A",5,2,8,3],["B",9,5,1,5]]
And I'm trying to sort it by the second column. I would expect list1 to then be
[["B",9,5,1,5],["A",5,2,8,3]]
Because 9 is greater than 5 right? I'm using
sorted(lis1, key=lambda a : a[1])
however it doesn't sort it; it just remains as it was before. Why isn't this working?