How to group items by index categories?

Hi, how to group all items of my value list by the values of my index list. When we look to the first branches of both lists you can see that items from index 2-4 should be grouped. Finally I would like to group all values with same index value from my Index list. I should receive a list of five branches.

cset - cset - member index - list item

I do not get it, sorry. Can you show it to me one more time? (9.5 KB)

you connected the wrong wire into the second set.

1 Like

If you want 5 branches you will also need to flatten the original inputs

1 Like

Thans a lot for your help! :slight_smile:

Actually, this is just a flip matrix. Use the flip matrix component. Or you mean by those random indexes you put there?

1 Like

if you want them branched by values just input the values into the cset, which gives you 8 branches.

1 Like

Yes, by the random indexes. Thanks again!

My question is this what if we want to group the items of a single branch together? So lets say you have your tree very similar to the one called index in your example. And you want to simply create a new tree also with 5 branches but for each branch instead of 5 items you have only 1. for example for the {0,0} only one item 0 {0,1,1,2,3,4,4} and hte second branch {0,1} again with only one item 0 {0,1,2,2,3,4,4}. Any idea how? many thanks fro your help!