Sort an array of values along specified dimension.
Check if a vector or matrix is sorted.
Sort matrix rows in ascending order.