Re-order randomized list to the x-direction

Hi everyone,

I’m trying to number the bricks of a wall in the x direction, like this:

However, I don’t know why the current list looks like randomized, so I can’t just flip the matrix or use the “Partition List” component to reorder this list of bricks to the x-direction… does anyone know how can I reorganize it to this specific direction?

hello
hard to say with so few informations. Perhaps this discussion could help

sort points will sort x first, y then z.
you can change the order of the point coordinates to achieve different sortings.
in your case z first, x second

sorry the screenshots does not show component names / sunglasses … looks like the computer needs a restart…

sort_bricks.gh (75.6 KB)

if you really want a robust sorting you should use / script some sorting that includes a threshold / epsilon.

if you want further help, please attach a minimum .gh file with interlaized geometry.

kind regards -tom