Can't get sortperm to return the sorting order of columns of a matrix

Have you looked at sortslices()?

julia> sortslices(t, dims=2)
3×2 Matrix{Float64}:
 0.5  0.5
 0.0  0.5
 0.5  0.0
2 Likes