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