Arranging lines

Hello,
I have a bunch of lines they are drawn one after another so that the end point of each is the starting point of the following one, is there any way to arrange this lines.

PolyCurve.ByJoinedCurves > PolyCurve.Curves

2 Likes