Merge/Combine Branches from same tree by last digit in Path

Hi guys,

My brain might not be working correctly at this time (5 am here) but I could not find a way to achieve this with less components. There must be a more effective way…

Basically if I have paths:

{ 0 ; 0 }
{ 0 ; 1 }
{ 0 ; 2 }

{ 1 ; 0 }
{ 1 ; 1 }
{ 1 ; 2 }

Instead of combining all 0s and 1s from left side, (shift path component) I want to combine by right side:
{ 0 ; 0 } + { 1 ; 0 }
{ 0 ; 1 } + { 1 ; 1 }
{ 0 ; 2 } + { 1 ; 2 }

data.gh (16.1 KB)


Data.gh (6.5 KB)

Or by renumbering?

Hi guys, thank for the replies. Ideally isnt there another way without using Path Mapper?