How to reverse tree indexes

Dear All

I have a simple data tree structure (pls see attached ) with 3 paths each with 11 indexes.

All I need to do is to reverse the order of each tree indexes from from to back front (not the order of the paths)

eg: Branch 1: Index 0 becomes index 10, Index 1 becomes Index 9 etc for all of the branches.

I am sure its a simple process but it just cant cross my dump mind in how to go about it!:

Can anyone please point me into the right direction please? Many thanks in advance!

Yutaka

reverse tree indexes.gh (5.9 KB)

Right click on output or input: reverse