I need to draw a convex polygon, given by 6 unordered vertices.
The drawing should be done using GL_TRIANGLE_STRIP, and two of the vertices are given to me at the first and last vertices.
How can I re-order the vertices efficiently so I can draw the polygon with OpenGL and GL_TRIANGLE_STRIP?