Sorting a dictionary having keys as string of numbers in python
- by ben
I have a dictionary of the following form
a = {'100':12,'6':5,'88':3,'test':34, '67':7,'1':64 }
I want to sort this dictionary with respect to key as following
a = {'1':64,'6':5,'67':7,'88':3, '100':12,'test':34 }
Please help