python sort dict by key

41

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

Comments

Submit
0 Comments