diff --git a/app/routes/datasets/versions.py b/app/routes/datasets/versions.py index 89a2f1722..085877ca5 100644 --- a/app/routes/datasets/versions.py +++ b/app/routes/datasets/versions.py @@ -536,6 +536,7 @@ async def _version_response( .where(ORMAsset.dataset == dataset) .where(ORMAsset.version == version) .where(ORMAsset.status == AssetStatus.saved) + .order_by(ORMAsset.created_on) .gino.all() ) data = Version.from_orm(data).dict(by_alias=True)