From 3453359e1e6cf634d8d45e82d08aea315c55d556 Mon Sep 17 00:00:00 2001 From: Christian Merten Date: Sun, 1 Dec 2024 13:28:13 +0100 Subject: [PATCH] startpage: sort groups by name --- jdav_web/startpage/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdav_web/startpage/views.py b/jdav_web/startpage/views.py index d7f6eba..66b70bc 100644 --- a/jdav_web/startpage/views.py +++ b/jdav_web/startpage/views.py @@ -11,7 +11,7 @@ from .models import Post, Section # render shortcut adding additional context variables, needed for navbar def render(request, template_path, context={}): - context['groups'] = Group.objects.filter(show_website=True) + context['groups'] = Group.objects.filter(show_website=True).order_by('name') context['sections'] = Section.objects.all() try: context['root_section'] = Section.objects.get(urlname=settings.ROOT_SECTION)