how to sort a queryset in django code example
Example: django order by
#Add this to your models.py class, and dont remove the comma!
class Meta:
ordering = ('yourfeild',)
#Add this to your models.py class, and dont remove the comma!
class Meta:
ordering = ('yourfeild',)