Fixed: Creating collision-outline for Obstacles using IsoVist

Gh 0.9.0076
Am trying to visualize the outline curves from an IsoVist sampling. I have a collection of points from where I cast the rays and a collection of obstacles. I have a inconsistency when I use different numbers for the sampling origin. I attach the gh file, where with 4 points the effect is what I am looking for, yet with 5 sampling points the sorting gets mixed-up. Any tips/suggestions how to get this fixed?
The color sorting for the rays works fine, yet creating the white outline-curve doens’t
IsoVist outline.gh (12.7 KB)

The problem is, before using Partition List, you’ll need to regroup the ray intersection points and after that sort them along each circle…

IsoVist outline_re.gh (15.7 KB)

Thanks so much!