How to get correct branches out of dataset?

I am working with a larger dataset. In fact consisting of about 40 branches with lists up to 8 numbers. I do want to compare all those lists with eachother.
So I used a crossref ; path and tree branch to select all lists in pairs to compare. But somehow this gives strange effects.
In the crossref list the same number is repeated several times, now tree branch combines these into one branch.
No idea how to solve this.

I made a small example. The red lines indicate what I would have exspected to come out. : 3 branches in correct order to create pairs


howtogetcorrectbranches.gh (7.5 KB)

Right click the Tree Branch node and deselect ‘Maintain Paths’ (so that it changes to ‘Renumber’).

Thanks, I have to learn to also check if a component has a black message at the bottom!