powered by
Within each column of a matrix, this function returns the indices of each element in descending order
sortIndex(u)
is the input matrix with cardinal preferences
a matrix with sorted indices (the agents' ordinal preferences)