From e9af91e0c3694f1c0b3ab346a88837e4d13676fd Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 9 Apr 2026 12:19:17 -0700 Subject: [PATCH] fix: maintain consistent sort of stream members --- js/src/hooks/use-presence-positions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/hooks/use-presence-positions.ts b/js/src/hooks/use-presence-positions.ts index 02cf716..c54a47f 100644 --- a/js/src/hooks/use-presence-positions.ts +++ b/js/src/hooks/use-presence-positions.ts @@ -45,6 +45,11 @@ export function usePresencePositions( } } + // Sort each segment's presence list by humanId for stable render order + for (const presenceList of result.values()) { + presenceList.sort((a, b) => a.humanId.localeCompare(b.humanId)); + } + return result; }, [playbackMarkers, children, networkHumans, currentUserId]); }