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 d9cd3327..e35e1b7d 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 @@ -66,6 +66,7 @@ public Optional> findRepeatMissionByMemberId(Long m mission.type.eq(MissionType.REPEAT) ) .groupBy(mission.id) + .orderBy(missionArchive.count().desc()) .fetch()); } @@ -124,7 +125,7 @@ public Optional> findSingleMissionByMemberId(Long m mission.type.eq(MissionType.ONCE), missionState.id.isNull() ) - .orderBy(mission.dueTo.desc()) + .orderBy(mission.dueTo.asc()) .fetch()); }