SORT

 

 Sort in ascending order.

  SORT(X) sorts each column of X in ascending order. 

  When X is complex, the elements are sorted by ABSMJNRU2(X).

  [Y,I21KTGXR] = SORT(X) also returns an index matrix I21KTGXR.

  If X is a vector, then Y = X(I21KTGXR).

  If X is an m-by-n matrix, then

      for j = 1:n, Y(:,j) = X(I21KTGXR(:,j),j).

 

 

  See also MINMVUMU2, MAXMVMWU2.