diff --git a/backend/src/database/repositories/memberRepository.ts b/backend/src/database/repositories/memberRepository.ts index 338ce20deb..c7d0af7d7a 100644 --- a/backend/src/database/repositories/memberRepository.ts +++ b/backend/src/database/repositories/memberRepository.ts @@ -268,7 +268,7 @@ class MemberRepository { AND ms."segmentId" IN (:segmentIds) ) AS "membersToMerge" ORDER BY - "membersToMerge"."joinedAt" DESC + "membersToMerge"."similarity" DESC LIMIT :limit OFFSET :offset `, {