In case of vectors, an ordering of its elements in ascending order is produced; in case of matrices, the ordering in ascending order refers to every column.
ord(X)
Arguments
X: Vector or matrix to be ordered
Returns
A: Vector or matrix with the elements sorted in ascending order