Skip to content

Commit

Permalink
Merge pull request #102 from Hooking-CEOS/feature/copy
Browse files Browse the repository at this point in the history
[refactor] scrap 최신순
  • Loading branch information
JiwonKim08 authored Jul 29, 2023
2 parents bb47a25 + 7dbfb65 commit fb4c121
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public CopyRes(Long id, Brand brand, String text, LocalDateTime createdAt) {
this.createdAt = createdAt;
}

//왜안됨..?
@Override
public int compareTo(CopyRes other) {
return other.scrapTime.compareTo(this.scrapTime); // 역순으로 정렬
Expand Down

0 comments on commit fb4c121

Please sign in to comment.