From 1d7879acc109ec7eb8c2514386b42f4dd98b34dd Mon Sep 17 00:00:00 2001 From: Inex Code Date: Tue, 24 Dec 2024 15:53:14 +0300 Subject: [PATCH] fix: Sort services --- selfprivacy_api/graphql/queries/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfprivacy_api/graphql/queries/services.py b/selfprivacy_api/graphql/queries/services.py index 2f95544..2012303 100644 --- a/selfprivacy_api/graphql/queries/services.py +++ b/selfprivacy_api/graphql/queries/services.py @@ -16,5 +16,5 @@ from selfprivacy_api.services import ServiceManager class Services: @strawberry.field def all_services(self) -> typing.List[Service]: - services = ServiceManager.get_all_services() - return [service_to_graphql_service(service) for service in services] + services = [service_to_graphql_service(service) for service in ServiceManager.get_all_services()] + return sorted(services, key=lambda service: service.display_name)