human
Give me a Python program to sort iterator dictionary.
assistant
Here is a Python program to sort iterator dictionary

import collections

def sorted_iterator_dictionary(dictionary):
    """Returns a sorted iterator of the dictionary.

    :param dict dictionary:
    :rtype: collections.OrderedDict
    :return:
    """
    return collections.OrderedDict(sorted(dictionary.items()))

# Enter the dictionary
dictionary = {"name": "dahlia", "age": "23", "city": "Delhi"}

# Calling the function
print((sorted_iterator_dictionary(dictionary)))

#Example Output
# OrderedDict([('age', '23'), ('city', 'Delhi'), ('name', 'dahlia')])

#Remember to inspect code for bugs.