Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question