From 20011db37ed2558bc6edb6d54fd64884b7d8dd4d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 29 Jul 2020 19:03:11 +0200 Subject: [PATCH] Order aliases by name --- apps/note/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/note/api/views.py b/apps/note/api/views.py index d5ad8129..22470461 100644 --- a/apps/note/api/views.py +++ b/apps/note/api/views.py @@ -109,7 +109,7 @@ class ConsumerViewSet(ReadOnlyProtectedModelViewSet): queryset = queryset.filter( Q(name__regex="^" + alias) | Q(normalized_name__regex="^" + Alias.normalize(alias)) - | Q(normalized_name__regex="^" + alias.lower())) + | Q(normalized_name__regex="^" + alias.lower())).order_by('name') return queryset