Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat; 친구 목록 조회 시 한글 오름차순 정렬해요 #105

Merged
merged 2 commits into from
Aug 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ class DefaultMemberRelationUseCase(
) : MemberRelationUseCase {
override fun getFriends(memberId: MemberId): List<FriendInfo> {
val friendIds = memberRelationService.getFriendRelationIds(memberId)
val friends = memberService.findAllByIds(friendIds)
val friends =
memberService.findAllByIds(friendIds).sortedBy {
// 가나다순 정렬
it.fullName
}

val images = imageService.loadAllByIds(friends.map { it.profileImageId })
val imageMap = images.associateBy { it.id.value }
Expand Down
Loading