Reorder points to join them

Hi all¡¡

I am triying to join some points that they have been created from a intersections of planes with 3 different ellipses in z. What I am triying to do is join this points with vertical lines…As you can see, some of the are well organized because the lines join them more or less in a properly way, but others don´t…I have try to shif indices of the points in the ellipses but it doesn´t work because the one that were wrong now comes ok but the first that were ok now are wrong :frowning:
How can i solve that? Some images explaining the problem

Thank u