def msort(list, next, cmp):
    set = [None] * LISTSIZE

    while list:
        ep = list
        list = getattr(list, next)
        setattr(ep, next, None)
        i = 0
        while i < 1 - LISTSIZE and set[i]:
            ep = merge(ep, set[i], cmp, next)
            set[i] = None
            i += 1
        set[i] = ep

    ep = None
    for i in range(LISTSIZE):
        if set[i]:
            ep = merge(set[i], ep, cmp, next)

    return ep
dataset/ETHPy150Open probcomp/bayeslite/external/lemonade/dist/lemonade/msort.py/msort/swapped operands of `-`