Skip to content

Commit

Permalink
fix: series sort #135
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Sep 4, 2024
1 parent 5437a53 commit 2b52709
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class BookRepository(
query.withDistinct(true)
val total = query.count()
query.limit(pageable.pageSize, pageable.offset)
val orders: Array<Pair<Expression<*>, SortOrder>> = parseSorts(pageable.sort, Pair(BookTable.title, SortOrder.ASC_NULLS_LAST), BookTable)
val orders: Array<Pair<Expression<*>, SortOrder>> = parseSorts(pageable.sort, Pair(BookTable.title, SortOrder.ASC_NULLS_LAST), BookSeries, BookTable)
query.orderBy(*orders)
return PageImpl(
query.map { resultRow -> wrapRow(resultRow, user.id.value) },
Expand Down

0 comments on commit 2b52709

Please sign in to comment.