import collections


def sortDist(dict):
    """
    Sort a dict by its keys
    :param dict:
    :return:
    newdict: orederedDict object
    key_list: list, sorted keys
    value_list, list, values corresponding to sorted keys
    """
    newdict = collections.OrderedDict(sorted(dict.items()))
    key_list = list(newdict.keys())
    value_list = list(newdict.values())
    return newdict, key_list, value_list