Sorts EntityRelationshipInfo items deterministically and environment-independently.
Sort order: Sequence → RelatedEntity name → RelatedEntityJoinField → ID.
__mj_CreatedAt is intentionally NOT used as a tiebreaker — see
sortBySequenceAndCreatedAt for the rationale. Batch-inserted relationships
routinely share Sequence values (especially when CodeGen mis-keys the Sequence counter,
a separate bug), so the alphabetical tiebreakers are doing the real work of stabilizing
the order across environments.
Sorts EntityRelationshipInfo items deterministically and environment-independently. Sort order: Sequence → RelatedEntity name → RelatedEntityJoinField → ID.
__mj_CreatedAtis intentionally NOT used as a tiebreaker — see sortBySequenceAndCreatedAt for the rationale. Batch-inserted relationships routinely share Sequence values (especially when CodeGen mis-keys the Sequence counter, a separate bug), so the alphabetical tiebreakers are doing the real work of stabilizing the order across environments.