is.unsorted(x, na.rm = FALSE, strictly = FALSE)NA except for atomic vectors and
objects with an S3 class (where the >= or > method is
used to compare x[i] with x[i-1] for i in
2:length(x)) or with an S4 class where you have to provide a
method for is.unsorted().
sort, order.