Connecting points in a straight line

Hey all,

I want the lines to be connected in a straight line, but for the top curve, it keeps connecting diagonally. Can anyone help me out here? I’ve attached my gh file.

rhinoceros forum help 2.gh (16.7 KB)

HERE IS YOUR PROBLEM: wrong point order and curve direction

one of the options would be sorting points around the circle located at the centre of this form: