function i4row_sort_a_test ( )

%*****************************************************************************80
%
%% i4row_sort_a_test() tests i4row_sort_a();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  m = 10;
  n = 4;
  b = 0;
  c = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4row_sort_a_test():\n' );
  fprintf ( 1, '  i4row_sort_a() sorts the rows;\n' );

  a = randi ( [ b, c ], m, n );

  i4mat_print ( m, n, a, '  The original matrix:' );

  a = i4row_sort_a ( m, n, a );

  i4mat_print ( m, n, a, '  The row-sorted matrix:' );

  return
end
