From e8032da0276cf83319a58718ad1dc229b03efcee Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 13 Dec 2023 14:27:55 +0100 Subject: [PATCH] Fix translator books ordering --- src/views/translators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/translators.rs b/src/views/translators.rs index eea8497..f1fc5bd 100644 --- a/src/views/translators.rs +++ b/src/views/translators.rs @@ -64,7 +64,7 @@ async fn get_translated_books( .with(book_author::author::fetch().with(author::author_annotation::fetch())), ) .with(book::book_sequences::fetch(vec![]).with(book_sequence::sequence::fetch())) - .order_by(book::id::order(prisma_client_rust::Direction::Asc)) + .order_by(book::title::order(prisma_client_rust::Direction::Asc)) .skip((pagination.page - 1) * pagination.size) .take(pagination.size) .exec()