@staticmethod         
    def argsort(seq):
        return sorted(range(len(seq)), key = seq.__getitem__)
Find the indices of a sequence after being sorted. Code taken from 
dataset/ETHPy150Open charanpald/APGL/apgl/util/Util.py/Util.argsort