Skip to content

Commit

Permalink
Memo Recommend SortByDescending (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leafguyk authored Mar 10, 2025
1 parent 551ede1 commit ef842cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class MemoService(

// 각 TagEntity의 memoTags 컬렉션에서 memo의 id를 추출 후 모두 flat하게 합침
return tags.flatMap { tag ->
tag.memoTags.sortedBy { memoTag ->
tag.memoTags.sortedByDescending { memoTag ->
memoTag.memo.createdAt
}.mapNotNull { memoTag ->
memoTag.memo.id
Expand Down

0 comments on commit ef842cf

Please sign in to comment.