Sort a matrix into lexicographical order

lex_sort(x, ...)

Arguments

x

a matrix or arrayvec object

...

other parameters

Value

the input type sorted

Details

Sorts a range of tuples into lexicographical order. This function only exists for demonstration purposes.

Examples

if (has_cxx17()) {
x = lex_sort(matrix(runif(200), 100))
plot(x, type = "o", pch = 19, col = "steelblue", asp = 1)
}