There is a tree which contains multiple lists, all containing lines.
I would like to reorder the Start-End sequence of the lines. In a way that the lines (startpoint A, Enpoint B) always run in the positive X-direction, positive Y-direction or positive Z-direction.
Besides, Its important that the original tree/branch format remains the same.
So for example see figure below, the startpoints represent 0, the endpoints 1.
(at the moment (see GH file) of them are wrongly oriented).
Do you have any suggestions?