From 7a15ab744b5c78be476e611827251ba16c7b3037 Mon Sep 17 00:00:00 2001 From: swfarnsworth Date: Tue, 3 Aug 2021 11:01:38 -0400 Subject: Sort the columns in the UI. --- pydis_site/apps/resources/views/resources.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pydis_site/apps/resources/views/resources.py') 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) } ) -- cgit v1.2.3