function vertex_sort_test ( )

%*****************************************************************************80
%
%% vertex_sort_test tests vertex_sort().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vertex_sort_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  vertex_sort() sorts the vertex list of a polyiamond.\n' );
  fprintf ( 1, '  Since the vertices must stay in counterclockwise order,\n' );
  fprintf ( 1, '  sorting can only rotate the ordering.\n' );

  for k = 1 : 12
    name = name_hexiamond ( k );
    v = vertex_hexiamond ( k );
    vertex_print ( v, name );
    v2 = vertex_sort ( v );
    vertex_print ( v2, [ name, ' (sorted)' ] );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vertex_sort_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
