function [varargout] = issorted(varargin)

%ISSORTED True for sorted vector.
%   ISSORTED(A) when A is a vector returns 1 if the elements of A are
%   in sorted order (in other words, if A and SORT(A) are identical)
%   and 0 if not.
%
%   For character arrays, ASCII order is used.
%
%   ISSORTED(A,'rows') when A is a matrix returns 1 if the rows of A 
%   are in sorted order (if A and SORTROWS(A) are identical) and 0 if not.
%
%   See also SORT, SORTROWS, UNIQUE, ISMEMBER, INTERSECT, SETDIFF, SETXOR, UNION.

%   Copyright 1984-2003 The MathWorks, Inc.
%   $Revision: 1.2.4.3 $  $Date: 2004/12/24 20:46:13 $

if nargout == 0
  builtin('issorted', varargin{:});
else
  [varargout{1:nargout}] = builtin('issorted', varargin{:});
end
