검색 결과 기본 정렬을 무작위에서 이름 일치순으로 변경#63
Merged
Merged
Conversation
공식 인증 동아리를 먼저 배치하는 구조는 유지하되, 동일한 인증 상태 내에서는 Math.random() 기반 무작위 정렬 대신 query와 club.name의 일치 정도가 높은 순으로 정렬한다. (정확 일치 > 접두 일치 > 부분 일치 위치순 > 이름 길이 > 가나다순) 점수는 클럽당 한 번만 계산하는 decorate-sort로 처리해 비교자 내 중복 계산을 제거했다. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
공식 인증 동아리를 먼저 배치하는 구조는 유지하되,
동일한 인증 상태 내에서는 Math.random() 기반 무작위 정렬 대신 query와 club.name의 일치 정도가 높은 순으로 정렬한다.
(정확 일치 > 접두사 일치 > 부분 일치 위치순 > 이름 길이 > 가나다순)
점수는 클럽 당 한 번만 계산하는 decorate-sort로 처리해 비교자 내 중복 계산을 제거했다.