Overview
M-Files offers many customization options which can be used in sorting properties on the metadata card. It's recommended to define the properties and their sorting order in the class' properties in M-Files Admin. Please check the reference document below for further reference.
However, in some scenarios where, for example, a document goes through a workflow additional properties need to be added to the metadata card later. By default, the new properties are added last in the metadata card which might not be optimal in all cases.
Solution
Please note that excessive use of Metadata Card Configuration (MDCC) causes slowness in vaults or could lead to other usability issues. MDCC should be used only where no other options are available.
M-Files Metadata Card Configuration offers options to create property groups and sort them according to set priorities. Both methods can help to manage properties and their location on the metadata card, but this article focuses only on sorting. By default, properties on the metadata card have a default value of 1000 which can be used to sort properties on the metadata card.
When you would like to change the order of existing properties with new ones, you will need to configure these properties with the priorities you want on the metadata card. Changing priority of a single property to 999 would result in it being the first property listed on the metadata card. However, changing some property's value to 1001 would make it appear last on the metadata card. You might need to set priority values for multiple properties in case you need to slot in properties in between the existing and new properties that are not sorted on the class' properties.
It's also possible to use the 'after' configuration if only one property needs to be slotted in between properties, but generally it should be avoided and use the priority instead.
