Sorting and grouping of points

Hi, can someone help me with finding out the error? It works fine when I explode tree and connect each of the branch. Why can’t I connect the lists of list directly?
image
RectangularBoxVoxelGradientTesting21.gh (68.1 KB)

The Z-coordinate is supposed to remain at 6.897, however it changes to 7.897 after the first branch.

missing

Hi sorry, I used a plugin to generate those points. Have internalised the points and uploaded a new set of file.
RectangularBoxVoxelGradientTesting22.gh (123.0 KB)

Something like this is what you want?

RectangularBoxVoxelGradientTesting22_re.gh (117.0 KB)

Oh yes, this was exactly what I wanted! Did not know the “Shift Path” function existed, seems like I have much more to learn. Thank you so much!