From a2cfe9c2a782cf758ce5cbcd81b54509ffd10863 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Apr 2021 12:17:35 +0200 Subject: [PATCH] admin: sort apps in meta api Signed-off-by: Jens Langhammer --- authentik/admin/api/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/admin/api/meta.py b/authentik/admin/api/meta.py index 5b89ab898..485a3e266 100644 --- a/authentik/admin/api/meta.py +++ b/authentik/admin/api/meta.py @@ -26,6 +26,6 @@ class AppsViewSet(ViewSet): def list(self, request: Request) -> Response: """List current messages and pass into Serializer""" data = [] - for app in get_apps(): + for app in sorted(get_apps(), key=lambda app: app.name): data.append({"name": app.name, "label": app.verbose_name}) return Response(AppSerializer(data, many=True).data)