diff --git a/src/main/java/com/moing/backend/domain/mission/domain/repository/MissionCustomRepositoryImpl.java b/src/main/java/com/moing/backend/domain/mission/domain/repository/MissionCustomRepositoryImpl.java index 1a6987e7..f8834e6f 100644 --- a/src/main/java/com/moing/backend/domain/mission/domain/repository/MissionCustomRepositoryImpl.java +++ b/src/main/java/com/moing/backend/domain/mission/domain/repository/MissionCustomRepositoryImpl.java @@ -64,6 +64,7 @@ public Optional> findRepeatMissionByMemberId(Long m mission.type.eq(MissionType.REPEAT) ) .groupBy(mission.id) + .orderBy(missionArchive.count().desc()) .fetch()); } @@ -122,7 +123,7 @@ public Optional> findSingleMissionByMemberId(Long m mission.type.eq(MissionType.ONCE), missionState.id.isNull() ) - .orderBy(mission.dueTo.desc()) + .orderBy(mission.dueTo.asc()) .fetch()); }