Determine whether the matrix has sorted indices
True: if the indices of the matrix are in sorted order
False: otherwise