from typing import OrderedDict


def sort_dictionary(dictionary):
    """
    This function will turn a dictionary with sortable keys into an
    OrderedDict with keys in the ordering of the keys.

    This dictionary will have two levels of nesting as it will be a mapping of
    the sort {State -> {State -> value}}

    Args:
        dictionary (dict): The dictionary to be sorted
    Returns:
        OrderedDict: The sorted dictionary
    """
    ordered = OrderedDict()
    for outer_key in sorted(dictionary):
        inner_ordered = OrderedDict()
        for inner_key in sorted(dictionary[outer_key]):
            inner_ordered[inner_key] = dictionary[outer_key][inner_key]
        ordered[outer_key] = inner_ordered
    return ordered