4
I’m using sorted
to organize a list, but I need two criteria to organize it for tie cases, for this, I call sorted( )
twice. It has how to make this organization calling sorted( )
only once?
Basically, so that’s the code:
lista_intermediaria = sorted(minha_lista, key = funcao_comparacao_1)
lista_organizada = sorted(lista_intermediaria, key = funcao_comparacao_2)