def sort_by_totals(value_arrays: Dict[(str, List[int])]) -> List[str]:
    totals = [(sum(values), label) for (label, values) in value_arrays.items()]
    totals.sort(reverse=True)
    return [label for (total, label) in totals]
def sort_by_totals(value_arrays: Dict[(str, List[int])]) -> List[str]:
    totals = [(sum(values), label) for (label, values) in value_arrays.items()]
    totals.sort(reverse=True)
    return [label for (total, label) in totals]