How can I configure a narrative report to sort all items at a level by date?

I edited the GEDCOM file to test my hypothesis that renumbering family numbers would cause RootsMagic 8 to show marriages in family number order. Even with the first marriage with a lower family number RootsMagic 8 shows the earlier marriage later than the later marriage. The marriages are ordered by the spouses’ surnames and by spouses’ individual numbers. From the edited GEDCOM file:

0 @F558@ FAM
1 MARR
2 DATE Oct 1661
2 PLAC Salem, , Massachusetts, United States
1 HUSB @I1551@
1 WIFE @I1553@
0 @F559@ FAM
1 MARR
2 DATE 12 Aug 1663
2 PLAC Reading, , Massachusetts, United States
2 NOTE or 1664, or Boston MA
1 HUSB @I1551@
1 WIFE @I1552@
1 CHIL @I1546@
1 NOTE @T3260@

F559 appears before F558 in the descendant chart and in the narrative report of descendants. Incidentally, the marriage documented in F559 is not reported in the narrative report.

Based on this I will not be modifying the GEDCOM-generating program to renumber families into sequence order. It is not clear what to change in the GEDCOM export to get the marriages to appear in sequence order.