'Returns a key for the supplied triangle.  It should be the
same independently of the hash randomisation.'

@staticmethod
def _triangle_key(tri, triangle_sizes):

    objects = sorted(DiagramGrid._triangle_objects(tri), key=default_sort_key)
    return (triangle_sizes[tri], default_sort_key(objects))
