From 66d3039714a580e745a19f87da02592f4f29f65c Mon Sep 17 00:00:00 2001 From: Sandeep Reddy <106254202+SandeepReddy0805@users.noreply.github.com> Date: Sun, 9 Feb 2025 05:28:59 +0530 Subject: [PATCH] Sorted Tags in problems page (#388) --- src/templates/problems_paging.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/templates/problems_paging.html b/src/templates/problems_paging.html index 1aaaee7e..26b7f90e 100644 --- a/src/templates/problems_paging.html +++ b/src/templates/problems_paging.html @@ -143,10 +143,12 @@
{% if problem.is_note %}{{ problem.note_text }}{% endif %}
- {% for tag in problem.tags.all %} + {% with sorted_tags=problem.tags.all|dictsort:"name" %} + {% for tag in sorted_tags %} {% ifchanged %} {% endifchanged %} {{ tag.name }} {% endfor %} + {% endwith %} {% endfor %}