I'm using sorted
to organize a list, however I need two criteria to organize it for tie cases, so I call sorted( )
twice. Can you do this organization by calling sorted( )
only once?
Basically, the code is as follows:
lista_intermediaria = sorted(minha_lista, key = funcao_comparacao_1)
lista_organizada = sorted(lista_intermediaria, key = funcao_comparacao_2)