From efa1b83e06bfa8f17b94d2ded9cd454bbf839718 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Wed, 13 Dec 2023 15:46:31 +0100 Subject: [PATCH] fix: sort person also by `first_name` --- apis_ontology/querysets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis_ontology/querysets.py b/apis_ontology/querysets.py index e6cce5f..70f1ff8 100644 --- a/apis_ontology/querysets.py +++ b/apis_ontology/querysets.py @@ -5,4 +5,4 @@ DB_COLLATION = 'binary' if 'sqlite' in settings.DATABASES['default']['ENGINE'] else 'en-x-icu' -PersonListViewQueryset = Person.objects.all().order_by(Collate("name", DB_COLLATION)) +PersonListViewQueryset = Person.objects.all().order_by(Collate("name", DB_COLLATION), Collate("first_name", DB_COLLATION))