Hello guys!

I have a number of contour lines and I want to make two different lists from curves. The selection I want to be with step 2 which means 1st list I want to consist of 1,3,5,7… curve and 2st list of 2,4,6,8…

For achieving this I thought to use 2 series components with step 2 and different start curve. My problem is that the curves are not sorted in the list and I would like to be sorted by the height from the 0 (Z-axis distance). Another problem I have is that for a specific distance on the Z axis, for example, 5m maybe there are more than one curves that must be at the same index on the list in order to work correctly the series. Is there another way to do that? If not how can achieve this sort of curves?

sort_of_list.gh (3.1 MB)

Thank you