Rearranging tree branches

Hey,

I was wondering if someone could help me out. I have a tree structure in which I would like to reorder my branches. The problem is that the number of branches is dependent on the number of input points (every point I have adds 2 branches). If I name my input points A,B,C the branches are ordered A1,B1,C1,A2,B2,C2.

Is there a way to reorder them into A1,A2,B1,B2,C1,C2?

See the attached figure:
reordering tree branches

Best

Matej

I’m not proud of this, but there is a messy mapping transformation in the Path Mapper that will do this:

remap.gh (16.1 KB)

Exactly what I needed!
Thank you

Just other option !

171118-remap_v2-Split and Weave.gh (15.2 KB)