C#, sorting coordinates into continuous line I have the following coordinates for a line OR potentially non-convex polygon: