

def msum(x):
    xx = [(fabs(v), i) for (i, v) in enumerate(x)]
    xx.sort()
    sum = 0
    for i in xx:
        sum += x[i[1]]
    return sum

dataset/ETHPy150Open anandology/pyjamas/examples/libtest/RandomModuleTest.py msum/original