from typing import Dict
from typing import Any
from typing import OrderedDict


def sort_dict(item: dict) -> Dict[str, Any]:
    """
    Sort nested dict

    Input: {"b": 1, "a": {"c": 1,"b": 2}, "c": "c_st[ring]"}
    Output: OrderedDict([
        ('a', OrderedDict([('b', 2), ('c', 1)])),
        ('b', 1),
        ('c', 'c_st[ring]')
    ])
    """
    return OrderedDict(
        (k, sort_dict(v) if isinstance(v, dict) else v)
        for k, v in sorted(item.items())
    )