diff --git a/CHANGELOG.md b/CHANGELOG.md index 6522243d..25ba6a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - [565](https://github.com/thoth-pub/thoth/issues/565) - Don't generate Crossref metadata output if no DOIs (work or chapter) are present + - [632](https://github.com/thoth-pub/thoth/pull/632) - Add second order by clause (work\_id) to work queries for consistent ordering when multiple works share the same user-ordered field, such as publication date ## [[0.12.9]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.9) - 2024-09-06 ### Added diff --git a/thoth-api/src/model/work/crud.rs b/thoth-api/src/model/work/crud.rs index f2c14496..be44ea49 100644 --- a/thoth-api/src/model/work/crud.rs +++ b/thoth-api/src/model/work/crud.rs @@ -315,6 +315,7 @@ impl Crud for Work { ); } match query + .then_order_by(dsl::work_id) .limit(limit.into()) .offset(offset.into()) .load::(&mut connection)