diff --git a/colandr/models.py b/colandr/models.py index e7e6b6f6..299c53f6 100644 --- a/colandr/models.py +++ b/colandr/models.py @@ -442,7 +442,11 @@ class Study(db.Model): lazy="select", ) screenings: WOM["Screening"] = sa_orm.relationship( - "Screening", back_populates="study", lazy="write_only", passive_deletes=True + "Screening", + back_populates="study", + lazy="write_only", + passive_deletes=True, + order_by="Screening.id", ) dedupe: M["Dedupe"] = sa_orm.relationship(