Star Shape with Sort List Logic

Dear All

Hi, I have been following a tutorial on creating a star shape. Whilst I understand all the logics of culling, I , however, am stuck on how the sort list can result in the selection of points resulting in the star shape.

I have attached the file herewith, most grateful if someone could kindly explain the logic behind in sorting the indices into a star?

Thank you so much!
Kind regards
Yutaka
sort list.gh (21.7 KB)

Try to use Weave.

sort list_re.gh (23.3 KB)

Many thanks HS, that’s a nice and clean solution.

The sort list method would also work but could you explain how it works?

Thanks so much!

Yutaka