I have a list of lists (can\'t be tuples since I have to generate it dynamically) and it is structured as a list of lists of one int and one float Like so:
[
Pass the key argument.
key
L.sort(key=operator.itemgetter(1))