Consider a dictionary 'a' if:
a = {6:32 , 1:15 , 3:45 , 2:12 , 5:46, 4:99}
I want to sort this dict by values with respect to its keys, such as this:
a = {2:12 , 1:15 , 6:32 , 3:45 , 5:46 , 4:99}
I wanted to know if it's possible without importing any modules.
Thanks