How can I find out the correct order of vertices to create a quad face with bmesh?
From 4 verts you can construct 6 edges: throw away 2 longest that don't share a vert and from there you get the correct vertex order.