The end is near surely! haha
I’ve taken what you all said on board. What I think will solve it is having a family of some description in the bottom left hand corner, get it positions which is easy enough, then get some vectors values to the piles to find the relative x,y, co-ordinates form the base family and try and sort it that way.
This has work fine for the top row of piles but not the middle row. It might be lacing problem somewhere. what I’ve found in the second list.sortbykey node there’s the same family listed 3 times. See below. I’ve also attached the DYN.
ThanksNumbering vectors.dyn (18.5 KB)