Sorting tree branches using list of indices

Hi all, I’m having a tree branch sorting problem that I can’t seem to solve, even after perusing this forum. I have a set of geometries that I’m dispatching into two separate streams. The data is transformed into a tree, which I then ultimately need to re-order into the same order using a list of indices I create - however the tree branch component is not doing the trick, even when I am renumbering the branches. Gh file attached, with tags added for visual debugging (the tags should match, and don’t right now).

Super grateful for any help! (2.9 MB)

I think this accomplishes your goal. (3.1 MB)


Thank you so much, this worked!