Group intersections beetween two sets of curves

Hi there, i’m trying two get all the intersections between two sets of curves. Graphically it works well by graphting one of the sets. But i want a data list sorted by groups (for each lines) like in a Crossref element. Any idea how to achieve that? Thanks a lot!

PATTERN.gh (15.4 KB)

PATTERN Edited v0.gh (31.9 KB)