gensim.matutils.argsort()

gensim.matutils.argsort(x, topn=None, reverse=False)[source]

Return indices of the topn smallest elements in array x, in ascending order.

If reverse is True, return the greatest elements instead, in descending order.