diff --git a/src/db_controller.rs b/src/db_controller.rs index a48e5ba..b22bfdb 100644 --- a/src/db_controller.rs +++ b/src/db_controller.rs @@ -139,6 +139,7 @@ impl Controller { let pagination = Record::find() .find_also_related(User) .filter(RecordColumn::UserId.eq(user.id)) + .order_by_asc(RecordColumn::Id) .paginate(&transaction, PAGE_SIZE); Ok(Some(PaginatedRecordData { current_data: pagination.fetch_page(page).await?,