I’m writing some data comparison code and it would be helpful if Julia had a sortslicesperm() similar to sortperm() so that a matrix could be sorted (like a vector) by
M = rand(0:2, 16, 4); p = sortslicesperm(M, dims=1): M[p,:]
However, I don’t see a sortslicesperm() in the sort documentation. Is that because sortslices() also operates on higher dimensional matrices and those higher dimensional permutations would be too complicated?