Easy way to resample complex spread

Hello. I’m trying to find easy way to resample spread like “2, 3” to something like “2, 2, 2, 3, 3”. I’m need to control how much times each of the numbers is repeated - trying to implement something like BinSize in IOBox (Node) for values. Maybe my way is completely wrong? I’m creating particle system with subsets of particles where each set has it’s own color, so i need BinSize pin to control amount of each set.

sort & sift is in’t it?

Can you provide example how this hack works?

probably Select (Value) or Select (Value Advanced) is your friend

Select.v4p (3.9 kB)

yeah, Select (Value) - one of the most underestimated nodes.

Big thx, select is what i exactly need.