iterate over a dictionary `foo` sorted by the key,"for k in sorted(foo.keys()):