ordering and sorting
no vote
B = sort(A) sorts the elements of A in ascending order along the first array dimension whose size does not equal 1. For strings, this is a sort in ASCII dictionary order. The sort is case-sensitive; uppercase letters appear in the output before lowercase. If A is a vector, then sort(A) sorts the vector elements. If A is a nonempty, nonvector matrix, then sort(A) treats the columns of A as vectors and sorts each column. If A is an empty 0-by-0 matrix, then sort(A) returns an empty 0-by-0 matrix. If A is a multidimensional array, then sort(A) treats as vectors all values along the first array dimension whose size does not equal 1, and then sorts each vector.