def sort_dict_alphabetically(d: dict) -> dict:
    """
    sort_dict_alphabetically sorts the content of
    a dictionary alphabetically by keys and returns
    the result as new dictionary.

    Parameters
    ==========

    d : dict
        Dictionary which should be sorted.

    Returns
    =======

    dict
        Alphabetically sorted dictionary.
    """
    out = {}
    keys = sorted(d.keys())
    for k in keys:
        out[k] = d[k]
    return out