Dividing branches based on pattern or same values in branch

hello all.
I am trying to sort elements based on y coordinate from a list that was previously sorted by x. In the picture below is just the basic sketch if something like this is even possible: I want to seek for same values in each branch alone and then divide this branch into new branches containing same values.
I hope you get my question :upside_down_face:

Something like this:

Same thing but sorted:

If you have further questions, post a grasshopper file with internalised data.

Please follow the link and read this entire post:

-Kevin

3 Likes

oh wow, ok, the Unflatten here is just awesome :clap: :clap:

1 Like

Thank you for this. I realized that I started solving my problem in a totally wrong way but this gave me some ideas.
List item was a perfect solution, I was trying to replace paths :person_facepalming: I was trying to sort boxes based on center and couldn’t reference corect box according to the last list. Puting Sort before Create set did the trick.