how to sort objects in descending order django code example Example: django desc order Obj.objects.all().order_by('-id')