powered by
naturalorder
naturalsort
naturalorder(text, decreasing = FALSE, na.last = TRUE) naturalsort(text, decreasing = FALSE, na.last = NA)
NA
text <- c("a-1.png", "a-2.png", "a-10.png") print(sort(text)) print(naturalsort(text))
Run the code above in your browser using DataLab