Hi Samuel! I found this issue in GitHub where Nate proposed a way to enforce ordering the attributes.
Maybe this will help? From what I gather, the reason it goes out of order is that the UI doesn't have any info about ordering in the OpenAPI schema.