diff --git a/app/src/main/kotlin/io/sakurasou/model/dao/common/PaginationDao.kt b/app/src/main/kotlin/io/sakurasou/model/dao/common/PaginationDao.kt index a9fb8faa..3b2daa03 100644 --- a/app/src/main/kotlin/io/sakurasou/model/dao/common/PaginationDao.kt +++ b/app/src/main/kotlin/io/sakurasou/model/dao/common/PaginationDao.kt @@ -27,7 +27,7 @@ interface PaginationDao { pageRequest.orderBy?.let { val column = getColumnByName(table, it) - val sortOrder = SortOrder.valueOf(pageRequest.order ?: "DESC") + val sortOrder = SortOrder.valueOf(pageRequest.order?.uppercase() ?: "DESC") query.orderBy(column, sortOrder) }