dict sort
snippet in c

dict sort

user6519

[(k,di[k]) for k in sorted(di.keys())]