R/kdtools.R
lexsort.Rd
Sort a matrix into lexicographical order
lex_sort(x, ...)
a matrix or arrayvec object
other parameters
Sorts a range of tuples into lexicographical order.
x = lex_sort(matrix(runif(200), 100)) plot(x, type = "o", pch = 19, col = "steelblue", asp = 1)