Sorting Points based on Position

Hi everyone,

 

Im trying to get some point sorted so i can then sort them and link them by polylines, to create a foldable surface. i am really stuck and i can figure out how to get the numbers to start at one of the end point and continue in sequence.

 

Here are some photos of what im trying to say

 

Thanks for Your Help