diff --git a/agenta-backend/agenta_backend/services/db_manager.py b/agenta-backend/agenta_backend/services/db_manager.py index cb6dffac64..6108774a24 100644 --- a/agenta-backend/agenta_backend/services/db_manager.py +++ b/agenta-backend/agenta_backend/services/db_manager.py @@ -1257,7 +1257,7 @@ async def fetch_environment_revisions_for_environment( ) result = await session.execute( - query.order_by(asc(AppEnvironmentRevisionDB.revision)) + query.order_by(asc(AppEnvironmentRevisionDB.created_at)) ) environment_revisions = result.scalars().all() return environment_revisions