From cd1af15c560526c2204acddaeaf4f77eae5ebe6f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 18 Feb 2020 17:00:56 +0100 Subject: [PATCH] core: sort applications by name --- passbook/core/views/overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/core/views/overview.py b/passbook/core/views/overview.py index e7ad3f657..54909f144 100644 --- a/passbook/core/views/overview.py +++ b/passbook/core/views/overview.py @@ -15,7 +15,7 @@ class OverviewView(LoginRequiredMixin, TemplateView): def get_context_data(self, **kwargs): kwargs["applications"] = [] - for application in Application.objects.all(): + for application in Application.objects.all().order_by('name'): engine = PolicyEngine( application.policies.all(), self.request.user, self.request )