Working on sorting triangles.