Model setting's attribute props order changes after saving from GUI

We don’t normally put the via above the collection, how did you get a structure like that?