mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46:39 +00:00
fix: Sort services
This commit is contained in:
parent
146b4cd1e7
commit
1d7879acc1
|
@ -16,5 +16,5 @@ from selfprivacy_api.services import ServiceManager
|
||||||
class Services:
|
class Services:
|
||||||
@strawberry.field
|
@strawberry.field
|
||||||
def all_services(self) -> typing.List[Service]:
|
def all_services(self) -> typing.List[Service]:
|
||||||
services = ServiceManager.get_all_services()
|
services = [service_to_graphql_service(service) for service in ServiceManager.get_all_services()]
|
||||||
return [service_to_graphql_service(service) for service in services]
|
return sorted(services, key=lambda service: service.display_name)
|
||||||
|
|
Loading…
Reference in a new issue