Not sure any more... some different rule set seems to be applied when a shape leaves its 'nest' and ventures out into the world on its own.
I can understand point order being influenced by the construction method and its association with other shapes. In the case of the shape 'in-group', the outer part is ordered from the top right(10, 20) and clockwise. The second, smaller part is the listed second (line 13).
When Shape 1, ventures out on its own, the inner part is now first (line 2), almost like freedom provide a new rule-set during its transition
So, there is probably a logical explanation for what is seen, BUT, if you were relying on the initial point ordering when the shape lived at home, to apply when it moved out on its own, then you would be in for a surprise.
Don't rely on what you see.
Examine what you have.
Be prepared to 'deal'
Not all shapes behave the same way when they move out.
Any rules that you come up with probably have a corner-case
At least it didn't take anything that didn't belong to it, when it moved out