Is there a way to use the sort() method or any other method to sort a list by column? Lets say I have the list:
[ [John,2], [Jim,9], [Jason,1] ]
You can use the sorted method with a key.
sorted(a, key=lambda x : x[1])