function i4col_sort2_a_test ( )

%*****************************************************************************80
%
%% i4col_sort2_a_test() tests i4col_sort2_a();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  m = 6;
  n = 4;

  b = 0;
  c = 20;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4col_sort2_a_test():\n' );
  fprintf ( 1, '  i4col_sort2_a() sorts the elements of the columns.\n' );

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

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

  a = i4col_sort2_a ( m, n, a );

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

  return
end
