CSES Counterclockwise Sort

Basically, I entirely misread the question and was doing the sorting myself.

My initial idea is to find the Centroid of all points and connect in that way but it does not give the right ordering.

If the problem were less trivial, how would the ordering actually be found??

https://cses.fi/problemset/task/2191/

Thanks
-hujo