iterate over a dictionary in sorted order,return iter(sorted(dict.items()))