Divide list of curves according to direction

Hi all,

I am trying to divide a list of curves into two list. One containing only virtical lines and the other only horizontal lines.

At the moment i am only able to get horizontal curves from two sides:

Would anyone know the quickest way of doing this?

curve in one direction.gh (480.2 KB)

Try this:
curve in one direction_v2.gh (496.2 KB)

1 Like

Thanks!