Hey Stockgoblin.

If you want to create a clock-wise ordering of points then you need to calculate the convex hull and reverse the order obtained by that algorithm (which creates an ordered list of points that is counter-clockwise in order).

For your problem, you have a 2D version which is a lot simpler than three or higher dimensions.