base/ordering.jl: simplified lexicographic permutation comparison.