def get_sorted_index(l, reverse=True):
 return sorted(range(len(l)), key=(lambda k: l[k]), reverse=reverse)

def get_sorted_index ( l , reverse = True ) : return sorted ( range ( len ( l ) ) , key = ( lambda k : l [ k ] ) , reverse = reverse )
get the sorted index of the original list .