diff --git a/app/hysql.hy b/app/hysql.hy index 5d11d9a..0f366ee 100644 --- a/app/hysql.hy +++ b/app/hysql.hy @@ -17,6 +17,8 @@ [db] (.all (await (.scalars db - (.where (select models.OutboxObject) - (.in_ models.OutboxObject.visibility [VisibilityEnum.PUBLIC VisibilityEnum.UNLISTED]) - (.is_ models.OutboxObject.is_deleted False)))))) + (.order_by + (.where (select models.OutboxObject) + (.in_ models.OutboxObject.visibility [VisibilityEnum.PUBLIC VisibilityEnum.UNLISTED]) + (.is_ models.OutboxObject.is_deleted False)) + (.desc models.OutboxObject.created_at))))))