Skip to content

Commit

Permalink
Merge pull request #279 from JNU-econovation/feature/BE-105
Browse files Browse the repository at this point in the history
[BE-105] 지원 분야 정렬시 큰 카테고리부터 정렬되도록 수정
  • Loading branch information
Profile-exe authored Sep 24, 2024
2 parents cefca5f + 7b55d1e commit 8354471
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
}
}

Expand Down

0 comments on commit 8354471

Please sign in to comment.