Dynamic Attributes Enumeration Values does not maintain Order of Entry

When adding Enumeration values in Dynamic Attributes, the list display order does not respect the order in which it was added. I noticed its not saved in the database in the order on which it was entered. The current fix is to edit the entry of the dynamic attribute in the database. This works for rest-api but in the cuba vaadin ui the order of enumeration value dropdowns in the entity screen to which the dynamic attribute is attached is still screwing up on the order.

Example: If i add 1, 2-25, 26-100, 101-500, 501+ in this order it converts it to 1, 26-100, 2-25, 101-500, 501+ and saves it in the database in this order. The current workaround i do is to reset the order by editing the database entry. This works and the rest api respect it.

Hi.
Thank you for reporting the problem. We have created a YouTrack issue