powered by
is.unsorted
is.sorted(x, na.rm = FALSE, strictly = FALSE)
stopifnot( is.sorted(1, 2, 4) )
Run the code above in your browser using DataLab