reorder structure FLOW documents