Organising point according to z value

Hi,
I have points with different z value (0,10,20,30) and I would like to organise them (in branches) as the image, according to their z value. Delating points with not an integer as z value and re-organise them. Do you know how to do it?
Thanks

This is one way.

181130_zvalue_ev.gh (11.7 KB)

1 Like

Thanks!,