The way changing tha attribute type works is by deleting the previous attribute and adding a new one with the same name but new type.
Unfortunatly we don't have a way to keep the order right now.
I will add this issue to my notes but it will be low priority as the order of the attributes does not affect anthing at runtime.