You could use the Geometry Pipeline
to dynamically read geometry from Rhino layers. And then feed this to your GHPython component. As for the point ordering algorithm, here’s one approach:
Here’s a quick implementation:
200504_SortsPointRadially_00.3dm (32.0 KB) 200504_SortsPointRadially_00.gh (5.3 KB)