from typing import OrderedDict


def dict_2_OrderedDict(d):
    """Convert a standard dict to a sorted, OrderedDict """

    od = OrderedDict()
    if d is not None:
        keys = list(d.keys())
        keys.sort()
        for k in keys:
            od[k] = d[k]

    return od