I have a list of lists. For example,
[
[0,1,\'f\'],
[4,2,\'t\'],
[9,4,\'afsd\']
]
If I wanted to sort the outer list by the string field o
**old_list = [[0,1,'f'], [4,2,'t'],[9,4,'afsd']]
#let's assume we want to sort lists by last value ( old_list[2] )
new_list = sorted(old_list, key=lambda x: x[2])**
correct me if i'm wrong but isnt the 'x[2]' calling the 3rd item in the list, not the 3rd item in the nested list? should it be x[2][2]?