Manage Data Tree with Split and Shift List

Hi everybody
I am in the grasshopper learning phase and I have a question concerning the handling of data trees

I would like to find in a data tree
1- All the branches which contain a specific item
2- To make a shift list on each branch so as to have the item chosen first in the list
3- To group these branches in a new data tree.
4- Finally, create another data tree that contains the other branches.
I hope my question is clear. Your help will be precious
Thank you

Reorganize_DataTree.gh (10.6 KB)

Reorganize_DataTree_RE.gh (20.1 KB)

1 Like

Perfect. Thank you @Jakinta
:pray:

1 Like

As part of learning I tried to do with a minimum of components. Any improvement or comment will be welcome

Reorganize_DataTree_02.gh (6.9 KB)

1 Like

it is much better. thank you very much @Jakinta :pray: :pray: :pray:

1 Like