order_by django queryset order by ordering
- Use order_by method to specify the field to order the queryset by.
- Put the field name in the order_by method to indicate the desired ordering.
- Use "-" in front of the field name to specify descending ordering.