Navigation

Operators and Keywords

Function List:

C++ API

: issorted (a)
: issorted (a, mode)
: issorted (a, "rows", mode)

Return true if the array is sorted according to mode, which may be either "ascending", "descending", or "either".

By default, mode is "ascending". NaNs are treated in the same manner as sort.

If the optional argument "rows" is supplied, check whether the array is sorted by rows as output by the function sortrows (with no options).

This function does not support sparse matrices.

See also: sort, sortrows.

Package: octave