Sort elements by relative side of curve

Hello,

I am trying to split a list of surfaces based on which ones fall to one side of a curve.

I tried comparing the bounding box X values to point closest curve, it doesn’t seem to be the right strategy.

I would be very appreciative of any suggestions how to tackle this.

Thank you!

sort elements internalized.gh (16.3 KB)

You can achieve it with Dispatch

Dispatch Grasshopper Online Document


Dispatch.gh (19.3 KB)

unnamed.gh (30.3 KB)

Dot Product