diff options
author | 2021-08-03 11:01:38 -0400 | |
---|---|---|
committer | 2021-08-03 11:01:38 -0400 | |
commit | 7a15ab744b5c78be476e611827251ba16c7b3037 (patch) | |
tree | 9c4db9c904dae15ab6a02d92228b9b5ec9fc57aa | |
parent | Add empty set as an initial value. (diff) |
Sort the columns in the UI.
-rw-r--r-- | pydis_site/apps/resources/views/resources.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py index 8ca08bd6..5b6350de 100644 --- a/pydis_site/apps/resources/views/resources.py +++ b/pydis_site/apps/resources/views/resources.py @@ -28,10 +28,10 @@ def resource_view(request: HttpRequest) -> HttpResponse: template_name="resources/resources.html", context={ "checkboxOptions": checkbox_options, - "topics": RESOURCE_META_TAGS.get("topics"), - "tag_types": RESOURCE_META_TAGS.get("type"), - "payment_tiers": RESOURCE_META_TAGS.get("payment_tiers"), - "complexities": RESOURCE_META_TAGS.get("complexity"), + "topics": sorted(RESOURCE_META_TAGS.get("topics")), + "tag_types": sorted(RESOURCE_META_TAGS.get("type")), + "payment_tiers": sorted(RESOURCE_META_TAGS.get("payment_tiers")), + "complexities": sorted(RESOURCE_META_TAGS.get("complexity")), "resources": get_resources_from_search(checkbox_options) } ) |