Sort the kids of the parent element so that they go in order from the left to the right.
[C#] static void SortLeftToRight(Structure structure, StructureElementElement parent, List<XRect> areas) [Visual Basic] Shared Function SortLeftToRight(structure As Structure, parent As StructureElementElement, areas As List<XRect>)
static void SortLeftToRight(Structure structure, StructureElementElement parent, List<XRect> areas)
Shared Function SortLeftToRight(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.