gdi32: Add a helper function to order the points of a rectangle.