def METHOD_NAME(snapshot: dict):
    sanitized = {}
    # Consul is pretty easy. Just sort, using service-dc as the sort key.
    consul_elements = snapshot.get("Consul")
    if consul_elements:
        csorted = {}
        for key, value in consul_elements.items():
            csorted[key] = sorted(value, key=lambda x: f'{x["Service"]-x["Id"]}')
        sanitized["Consul"] = csorted
    # Make sure we grab Deltas and Invalid -- these should really be OK as-is.
    for key in ["Deltas", "Invalid"]:
        if key in snapshot:
            sanitized[key] = snapshot[key]
    # Kube is harder because we need to sanitize Kube secrets.
    kube_elements = snapshot.get("Kubernetes")
    if kube_elements:
        ksorted = {}
        for key, value in kube_elements.items():
            if not value:
                continue
            if key == "secret":
                for secret in value:
                    if "data" in secret:
                        data = secret["data"]
                        for k in data.keys():
                            data[k] = f"-sanitized-{k}-"
                    metadata = secret.get("metadata", {})
                    annotations = metadata.get("annotations", {})
                    # Wipe the last-applied-configuration annotation, too, because it
                    # often contains the secret data.
                    if "kubectl.kubernetes.io/last-applied-configuration" in annotations:
                        annotations[
                            "kubectl.kubernetes.io/last-applied-configuration"
                        ] = "--sanitized--"
            # All the sanitization above happened in-place in value, so we can just
            # sort it.
            ksorted[key] = sorted(value, key=lambda x: x.get("metadata", {}).get("name"))
        sanitized["Kubernetes"] = ksorted
    return sanitized