function i4vec2_sort_a_test (  )

%*****************************************************************************80
%
%% i4vec2_sort_a_test() tests i4vec2_sort_a().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec2_sort_a_test():\n' );
  fprintf ( 1, '  i4vec2_sort_a() ascending sorts a pair of I4VECs;\n' );

  b = 1;
  c = 3;

  v1 = randi ( [ b, c ], n, 1 );
  v2 = randi ( [ b, c ], n, 1 );

  v1(3) = v1(1);
  v2(3) = v2(1);

  v1(5) = v1(2);
  v2(5) = v2(2);

  v1(9) = v1(1);
  v2(9) = v2(1);

  i4vec2_print ( v1, v2, '  The array:' );

  [ v1, v2 ] = i4vec2_sort_a ( n, v1, v2 );

  i4vec2_print ( v1, v2, '  After ascending sort:' );

  return
end
