No matter what the order is of the regions when you add them, they will always come back to you sorted to appear in document order from top to bottom (I presume for performance reasons so Sublime can easily determine based on what you can see in the window what regions it might need to draw).
Based on the output you provides, the regions aren’t being added in a top down order; that’s why you get them out in a different order. Region 0 should be line 29 always, region 1 should be line 30 always, etc.