Skip to content

Commit

Permalink
fix: sort person also by first_name
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Dec 13, 2023
1 parent cc714e1 commit efa1b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/querysets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit efa1b83

Please sign in to comment.