I want to sort my dict by value, but if I apply this code it doesn\'t work (it print only my key-value pairs without any kind of sorting). If I change key=lambda x: x[1] to x[0]