Connecting two contours for making an order of points data

I would like to make an order of points data by connecting contours like below.
What can I do for that? Please help me.

what is the rule for connecting your contours like that?

are we supposed to pay attention to the red numbers? how about that triangle going from the red 26 to the circle?

I don’t see how that graphic makes much sense.