python sort dict by key

31

d1 = dict(sorted(d.items(), key = lambda x:x[0]))

Comments

Submit
0 Comments