sort a queryset 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',)