Line item properties order

Shopify Partner
7 0 0

Hi, I'm having a little problem with some Shopify stores regarding the order in which the line item properties appear in the order on the admin page. Here's how the properties are added to a product when adding it to the cart, they are perfectly ordered with all properties starting with an underscore added at the end.


However, when viewing the order on the admin Orders page, they are shown like this:


The order is altered! What is weird is that this only happens in some Shopify stores. What are the criteria to sort the properties? I can't find anything on the Shopify API regarding the properties ordering.

Thank you in advance!