How to order a list of point in dynamo by their position (closest)

Hi All,
Starting from a Mesh geometry (pipe) I find a list of vertex position and I want to order them in groups of 8 determining by their positions.

This might get you halfway.

1 Like

Hi Marcel,
in this way my points are grouped in this order: AA BB AB AB AB AB AB AB, while I wish they were grouped in 2 groups of 8.
I tried to do the same thing with the y and z coordinates but the result doesn’t change.