Skip to content

Instantly share code, notes, and snippets.

View devodev's full-sized avatar
🏠
Working from home

Alexandre Barone devodev

🏠
Working from home
View GitHub Profile
import operator
import sys
import yaml
from typing import Any, Callable, Dict, Union
def deep_sort(obj: dict, sorters: Dict[str, Callable] = None) -> Union[dict, list, Any]:
sorters = sorters or {}
result: Any = obj