function z = monotone_vector_from_vector ( a )

%*****************************************************************************80
%
%% monotone_vector_from_vector() returns the monotone vector corresponding to a vector.
%
%  Example:
%
%    1 1 1 --> 1 1 1  #1  1
%    1 1 2 --> 1 1 2  #2  3
%    1 1 3 --> 1 1 3  #3  3
%    1 2 1 --> 1 1 2  #2  3
%    1 2 2 --> 1 2 2  #4  3
%    1 2 3 --> 1 2 3  #5  6
%    1 3 1 --> 1 1 3  #3  3
%    1 3 2 --> 1 2 3  #5  6
%    1 3 3 --> 1 3 3  #6  3
%    2 1 1 --> 1 1 2  #2  3
%    2 1 2 --> 1 2 2  #4  3
%    2 1 3 --> 1 2 3  #5  6
%    2 2 1 --> 1 2 2  #4  3
%    2 2 2 --> 2 2 2  #7  1
%    2 2 3 --> 2 2 3  #8  3
%    2 3 1 --> 1 2 3  #5  6
%    2 3 2 --> 2 2 3  #8  3
%    2 3 3 --> 2 3 3  #9  3
%    3 1 1 --> 1 1 3  #3  3
%    3 1 2 --> 1 2 3  #5  6
%    3 1 3 --> 1 3 3  #6  3
%    3 2 1 --> 1 2 3  #5  6
%    3 2 2 --> 2 2 3  #8  3
%    3 2 3 --> 2 3 3  #9  3
%    3 3 1 --> 1 3 3  #6  3
%    3 3 2 --> 2 3 3  #9  3
%    3 3 3 --> 3 3 3 #10  1
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer a(d): a given vector, with digits between 1 and b.
%
%  Output:
%
%    integer z(d): the monotone vector corresponding to a vector.
%
  z = sort ( a );

  return
end

