aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/forms/discover.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/routes/forms/discover.py')
-rw-r--r--backend/routes/forms/discover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/forms/discover.py b/backend/routes/forms/discover.py
index 9400f05..c4711aa 100644
--- a/backend/routes/forms/discover.py
+++ b/backend/routes/forms/discover.py
@@ -22,7 +22,7 @@ class DiscoverableFormsList(Route):
async def get(self, request: Request) -> JSONResponse:
"""List all discoverable forms that should be shown on the homepage."""
forms = []
- cursor = request.state.db.forms.find({"features": "DISCOVERABLE"})
+ cursor = request.state.db.forms.find({"features": "DISCOVERABLE"}).sort("name")
# Parse it to Form and then back to dictionary
# to replace _id with id