Order instruments by name

This commit is contained in:
Christian Cueni 2021-11-16 14:10:15 +01:00
parent b0aed1ca74
commit 79cd70cbd8
1 changed files with 1 additions and 1 deletions

View File

@ -64,4 +64,4 @@ class InstrumentQuery(object):
return BasicKnowledge.objects.all().live()
def resolve_instrument_types(self, info, **kwargs):
return InstrumentType.objects.filter(instruments__isnull=False).distinct()
return InstrumentType.objects.filter(instruments__isnull=False).order_by('name').distinct()