Child records can be output grouped by the fields. Set the "(Pro) Group Data" section in the OFC_Child Object Option record. The feature is available in Office File Creator Pro.
e.g., Outputs a three-level object with parents, children, and grandchildren, with grandchildren grouped by their children.
Instruction manual