%SORT Sort gpuArray in ascending or descending order.
%   B = SORT(A) 
%   B = SORT(A, DIM)
%   B = SORT(A, DIRECTION) 
%   B = SORT(A, DIM,DIRECTION) 
%   B = SORT(A, ..., 'MissingPlacement', M) 
%   B = SORT(A, ..., 'ComparisonMethod', C) 
%   [B,I] = SORT(A, ...)
%   
%   Example:
%    
%       N = 1000;
%       D = gpuArray.randn(N, N);
%       E = sort(D);
%   gpuArray Array E contains the elements of D sorted by columns
%   See also SORT, GPUARRAY, GPUARRAY/RANDN


%   Copyright 2011-2014 The MathWorks, Inc.
