I want to sort a dictionary, say that it was like this:
a_dict = {'2':12354, '1':12355432, '4':35342, '3':858743}
How would I be able to sort it so it's like this:
a_dict = {'1':12355432, '2':12354, '3':85874, '4':35342}
Is there any algorithms already built it?
Or do i have to make one myself
any help would be appreciated :)