I wrote a site on django. And I noticed that User.objects.all() gives me users out of order.
That is, for example, I have a user with id=1 Sasha, there is with id=2 Pasha, with id=3 Masha, with id=4 Dasha. And User.objects.all() gives me in the order of 3, 2, 1, 4 instead of 1, 2, 3, 4. The question is why? What criteria does django sort out of the box?
PS: I know about order_by and that I can override the default sort field in the Meta class. I’m wondering just how it does it directly User.objects.all()