My models:
HitCounter:
hits = models.PositiveIntegerField(default=0)
object_pk = models.TextField('object ID')
content_type = models.ForeignKey(ContentType,
verbose_name="content cype",
related_name="content_type_set_for_%(class)s",)
content_object = generic.GenericForeignKey('content_type', 'object_pk')
Item:
title = models.CharField(_('Title'), max_length=400)
desc = models.TextField(_('Description'), blank=True
)
I want to sort order the items in Item by hits in HitCounter? What should I do?