for i in range(len(toSort) - 1):
    for k, v in toSort.items():
        for a, b in v.items():
            if alph.index(b) == max(map(alph.index, list(v.values()))):
                pass
How can I get a ranked list from a dictionary?