mvpa2.misc.transformers.rank_order

mvpa2.misc.transformers.rank_order(x, reverse=False)

Rank-order by value. Highest gets 0