Member Junction
    Preparing search index...
    • 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.

      Type Parameters

      • T extends {
            __mj_CreatedAt?: Date;
            ID?: string;
            RelatedEntity?: string;
            RelatedEntityJoinField?: string;
            Sequence: number;
        }

      Parameters

      • items: T[]

      Returns T[]