I have the following list created from a sorted csv
list1 = sorted(csv1, key=operator.itemgetter(1))
I would actually like to sort the list
No need to import anything when using lambda functions. The following sorts list by the first element, then by the second element.
list
sorted(list, key=lambda x: (x[0], -x[1]))