ORMapEntrySerializer
class ORMapEntrySerializer<S : Quilted<S>>(valueSerializer: KSerializer<S>) : KSerializer<ORMapEntry<S>>
Custom KSerializer for ORMapEntry<S> that emits ORMapEntry.contributions sorted by Dot key, so two replicas at the same logical state produce identical bytes regardless of the order their merges happened to run in.
Wire format: Map<Dot, S> — the same shape DotFunSerializer emits, and for the same reason. ORMapEntry.join builds a LinkedHashMap whose iteration order depends on which side was self and which was other; sorting before encoding makes the wire form a function of the value.
Sort order: the one canonical order shared with the rest of the dot family (#1964). The encoding is CanonicalMapSerializer's over Dot keys, delegated to rather than re-spelled, so this class, DotFunSerializer and LatticeDotFunSerializer cannot drift apart.