Describe your Issue
Although Creator-provided properties are sorted before other properties, esp. if MapperFeature.SORT_CREATOR_PROPERTIES_FIRST is enabled.
But if MapperFeature.SORT_PROPERTIES_ALPHABETICALLY is enabled, properties of single Creator are still sorted alphabetically. This is probably not what is wanted, at least for Records.
So, we have 2 possibilities:
- If
SORT_CREATOR_PROPERTIES_FIRST is enabled, retain order of all Properties-based Creators (unless there is explicit @JsonPropertyOrder)
- Only retain full ordering for
Record Creators
Further we could add a new MapperFeature to control above cases.
Something like MapperFeature.RETAIN_ORDER_OF_CREATOR_PROPERTIES?
NOTE: this becomes more obvious with 3.0 when SORT_PROPERTIES_ALPHABETICALLY will be enabled by default.