function s_sort_a_test ( )

%*****************************************************************************80
%
%% s_sort_a_test() tests s_sort_a().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 June 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 's_sort_a_test():\n' );
  fprintf ( 1, '  s_sort_a() ascending sorts a string.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  -------String-------  -------Sorted-------\n' );
  fprintf ( 1, '\n' );

  test_num = 5;

  s_test(1,1:20) = 'HELLO World   !! !  ';
  s_test(2,1:20) = '12345678901234567890';
  s_test(3,1:20) = 'Abc Def Ghi Jkl Mno ';
  s_test(4,1:20) = 'AbleBakerCharlieDelt';
  s_test(5,1:20) = 'What? You have seen?';

  for test = 1 : test_num
    s = s_test(test,1:20);
    s = s_sort_a ( s );
    fprintf ( 1, '  "%s"  "%s"\n', s_test(test,1:20), s );
  end

  return
end
