G
G
glebst942019-11-08 22:53:27
Django
glebst94, 2019-11-08 22:53:27

How to sort alphabetically and not by string length?

I am creating a project in Django Python3. The model has a field last_name=CharField(...). Order_by('last_name') sorts by the length of the last name, not alphabetically. The problem is only with Cyrillic, with English everything is in order.
What could it be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question