0

List dictionary..(sort)?

Hi. please how can we use sort or any other method to have a result like that. [(3,"b"),(5,"a"),(66,"k")] ==> [(5,"a"),(3,"b"),(66,"k")] (trier les 2emes valeurs et non les premiÚres.. et aussi comment les options de la méthode change si on veut mettre en ordre les numéros ou bien les lettres. ) Thank you.

15th Jun 2017, 1:45 AM
Alluka Smile
Alluka Smile - avatar
3 Answers
15th Jun 2017, 2:01 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
https://stackoverflow.com/questions/10695139/sort-a-list-of-tuples-by-2nd-item-integer-value
15th Jun 2017, 1:50 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
thanks!
15th Jun 2017, 3:34 AM
Alluka Smile
Alluka Smile - avatar