How to prioritize the children fields, when a logic meets in a parent field.

I am trying to build a form using logics. When Field 1 meets a logic criteria, I want the following fields to appear in an order for example: Name, Department, Code, Shipping Address and Description.

I have added them in the same order but when I save and publish the form and the try to fill the form. When the Field 1 meets the logic criteria the below fields are appearing in different order i.e. Name went to last, and Shipping address came first.

There is no alphabetical order as well.

Was wondering where am I going wrong?