Sort Numbers

I am trying to split a list of numbers in grasshopper. The sequence is as below. Looking at the text file, the number goes in ascending order. However, one list goes in descending order. Please advise on how to split this number at the end and start. I am trying to achieve partition list with sub list such as

[0;0]
{0.93169
1.93169…
34.93169}

[0;1]
0.5108
1.5108…
35.5108]

NOTE: Search for 0.224695, that will be the inverted origin. I can’t sort the decimal value at the end as the values were not consistent
Data.txt (5.0 KB)

Try this

split data.gh (16.1 KB)

If u look at yr viewer, there is one list with N=70 and N =1, that is my issue.

And how we know where the list start and finish?
you need separate this list manually from index 215 to 249

asdfg

1 Like