☰
Debian Codegraph
@
1.13.0+dfsg-1
/
/
tests
/
test-modules
/
12_counter
/
R
/
utils.R
☽
☼
tests/test-modules/12_counter/R/utils.R
code
plain
raw
MIT
2013-2025 Posit Software, PBC; Joe Cheng, JJ Allaire, Yihui Xie, Jonathan McPherson,; RStudio, jQuery Foundation, jQuery contributors,; R Core Team
debian/copyright
1
# Given a numeric vector, convert to strings, sort, and convert back to
2
# numeric.
3
lexical_sort <- function(x) {
4
as.numeric(sort(as.character(x)))
5
}