1👍
You can either do it in the model meta by adding an order_with_respect_to
class Meta:
order_with_respect_to = '-marks'
Or through the template by using a template filter
{{ stud|dictsort:"-marks" }}
Source:stackexchange.com
1👍
You can either do it in the model meta by adding an order_with_respect_to
class Meta:
order_with_respect_to = '-marks'
Or through the template by using a template filter
{{ stud|dictsort:"-marks" }}