Internal use only. This exists so Windows and Linux machines can have the same order after a sort.

.sortDotsUnderscoreFirst(obj)

Arguments

obj

An arbitrary R object for which a names function returns a character vector.

Value

The same object as obj, but sorted with .objects first.

Examples

items <- c(A = "a", Z = "z", `.D` = ".d", `_W` = "_w") .sortDotsUnderscoreFirst(items)
#> A DOTD USW Z #> "a" ".d" "_w" "z"