datetime.issortedrows
datetime: TF = issortedrows (A)
datetime: TF = issortedrows (A, column)
datetime: TF = issortedrows (A, direction)
datetime: TF = issortedrows (A, column, direction)
Determine whether the rows of a datetime array are sorted.
TF = issortedrows (A) returns true if the rows
of the 2-D datetime array A are sorted in ascending order, i.e.
lexicographically by the first column, ties broken by the second column,
and so on, and false otherwise. Not-A-Time (NaT) elements
are treated as greater than any other value.
TF = issortedrows (A, column) checks the order
using only the columns listed in column, in the given priority. A
negative entry checks the corresponding column for descending order.
TF = issortedrows (A, direction) checks for the
order given by direction, which may be one of 'ascend'
(default), 'descend', 'monotonic', 'strictascend',
'strictdescend', or 'strictmonotonic'. It may also be a
cell array of 'ascend'/'descend' strings, one per sort
column. For the strict options a matrix qualifies only when its first
sort column is strictly monotonic and free of NaT.
TF = issortedrows (A, column, direction)
combines an explicit column list with a direction.
Source Code: datetime