def orderDict(d: dict):
    """Deep sort dictionary by keys
    
    Args:
        d (dict): unsorted dictionary
    
    Returns:
        [dict]: Sorted dictionary
    """

    return {k: orderDict(v) if isinstance(v, dict) else v for k, v in sorted(d.items())}