Skip to content

Commit

Permalink
refactor: 상품 검색 시 정렬 조건 변경 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Combi153 authored Apr 26, 2024
1 parent ea96561 commit 1390f7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class ProductKeywordCustomRepositoryImpl(
).whereAnd(
path(ProductKeyword::word).like(pattern = "%$word%", escape = ESCAPE_LETTER)
).orderBy(
length(path(ProductKeyword::word)).asc(), path(ProductKeyword::word).asc()
locate(word, path(ProductKeyword::word)).asc(),
length(path(ProductKeyword::word)).asc(),
path(ProductKeyword::word).asc()
)
}

Expand Down

0 comments on commit 1390f7f

Please sign in to comment.