from typing import OrderedDict


def s3_sortOrderedDict(adict):
        """
            Sort an OrderedDict by Value
            - assumes unique values
        """
        values = adict.values()
        values.sort()
        result = OrderedDict()
        keys = adict.keys()
        for value in values:
            for key in keys:
                if adict[key] == value:
                    result[key] = value
                    break
        return result