Maintain rectangle list/tree order through solver

Hello there, I am struggling to maintain my list of rectangles thought the Soft and hard solver and regular solver.
The list that the solver outputs is the same number of rectangles but not the same order as the original. So I can’t tag names to them since everything is random now.
I have entwined the goals, tried the show component.
Nothing works.
I think I have too many goals but maybe somebody can help.

For example, all those rectangles are workstations but … nope

So the big question is, how to maintain the order of the rectangles with lots of goals ?

did you try if the show component for the rectangles as first and additional “pseudo-goal” helps ?
I would expect the first branch of the output to represent your “rectangle - input branch”

provide some simplified sketch/definition (.gh file) that allow us to play with - without rebuilding a solution from scratch…

I figured it out, a lot of things were wrong with my code, entwine and flattening etc…