Sort list by intervals

Hi guys, i need some help in a definition that i’m trying to understand for purpose of the example i’ve created a Random List then i used a Sort, then i Divide Domain to create 5 domain:
0 to 19, 20 to 39, 40 to 59, 60 to 79, 80 to 100.
Then using List Item, Smaller, Larger, And, and Dispatch i managed to get the result, in dividing the list based of the domain that i created.

My question is, there is a simple/elegant/smarter way to get same result, even for the sake of the clarity and graphic order of the algorithm.

Sorry for the mess for explaining badly (maybe)
Thanks in advance.
Daniele.

Here’s one way, using the Find Domain component: organise by domain.gh (24.3 KB)

1 Like

Thank You very much David!!!