I have the same problem as here: how to order vertices in a simple, non-convex polygon but there is no solutions I can use.
I have coordinates of points and need to find some polygon. Does not matter that there is more solutions for one list of dots. I need some algorithm to find one of them. Does not matter which one. I really don't know how to solve this.
(I have stored coordinates in array and I want to use some algorithm in Javascript)
Thanks a lot.