Sort the kids of the parent element so that they go in order from the top to the bottom.
[C#] static void SortTopToBottom(Structure structure, StructureElementElement parent, List<XRect> areas) [Visual Basic] Shared Function SortTopToBottom(structure As Structure, parent As StructureElementElement, areas As List<XRect>)
static void SortTopToBottom(Structure structure, StructureElementElement parent, List<XRect> areas)
Shared Function SortTopToBottom(structure As Structure, parent As StructureElementElement, areas As List<XRect>)
You can separate each page into sub-areas which will be sorted separately.
In this way you can sort multiple columns or rows independently.