Sort by Category, sort into sub-branches

Hello.

I am wondering if anybody knows how to achieve the following:

The goal is to dynamically create sub-branches for multiple categories and drop geometry into these sub-branches based on a category marker.

Any ideas?

data_sorting.gh (25.8 KB)