Skip to content

Commit

Permalink
fix: order of pages is not loaded correctly from database
Browse files Browse the repository at this point in the history
closes #189
  • Loading branch information
gotson committed Jun 8, 2020
1 parent bbb9f7c commit d2288dd
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -27,6 +27,7 @@ class MediaDao(
.leftJoin(p).on(m.BOOK_ID.eq(p.BOOK_ID))
.where(m.BOOK_ID.eq(bookId))
.groupBy(*groupFields)
.orderBy(p.NUMBER.asc())
.fetchGroups(
{ it.into(m) }, { it.into(p) }
).map { (mr, pr) ->
Expand Down

0 comments on commit d2288dd

Please sign in to comment.