What defines which enchantment is first in the tooltip of the item?

What defines which enchantment is first in the tooltip of the item? I didn't find the information anywhere

Continue to help post