diff --git a/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/applicant/adaptor/AnswerAdaptor.java b/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/applicant/adaptor/AnswerAdaptor.java index 930e81ad..b9ee772a 100644 --- a/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/applicant/adaptor/AnswerAdaptor.java +++ b/server/Recruit-Domain/src/main/java/com/econovation/recruitdomain/domains/applicant/adaptor/AnswerAdaptor.java @@ -101,7 +101,11 @@ private void setSortType(Query query, String sortType) { case "name" -> query.with(Sort.by(Direction.ASC, "qna.name")); case "newest" -> query.with(Sort.by(Direction.DESC, "created_date")); case "objective" -> query.with( - Sort.by(Direction.DESC, "qna.field1")); // WEB, GAME, APP, AI + Sort.by( + Sort.Order.asc("qna.field"), // 지원 분야: 개발자, 기획자, 디자이너 + Sort.Order.desc("qna.field1"), // 세부 분야 1순위: WEB, GAME, APP, AI + Sort.Order.desc("qna.field2") // 세부 분야 2순위: WEB, GAME, APP, AI + )); } }