I think they mean the inverse of sortperm, the solution would be invperm(sortperm(A)).
1 Like
I think they mean the inverse of sortperm, the solution would be invperm(sortperm(A)).