function t2 = triangle_sort ( t )

%*****************************************************************************80
%
%% triangle_sort() sorts a triangle list.
%
%  Discussion:
%
%    The triangle list is a list of the IJK parallelogram triangles
%    that constitute the polyiamond.
%    If k = 0, the "ijk" triangle has vertices
%      (i-1,j-1), (i,j-1), (i-1,j).
%    If k = 1, the "ijk" triangle has vertices
%      (i,j), (i-1,j), (i,j-1).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 November 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer T(TN,3), the IJK coordinates of the triangles of the polyiamond.  
%
%  Output:
%
%    integer T2(TN,3), the sorted triangle list. 
%
  t2 = sortrows ( t );

  return
end

