function i4col_sort_d_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4col_sort_d_test():\n' );
  fprintf ( 1, '  i4col_sort_d() descending sorts an integer array\n' );
  fprintf ( 1, '  as a table of columns.\n' );

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

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

  a = i4col_sort_d ( m, n, a );

  i4mat_print ( m, n, a, '  Descending sorted:' );

  return
end
