How to Sort related items in a Django template ?
You need to specify the ordering in the attendee model, like this. For example (assuming your model class is named Attendee):
class Attendee(models.Model): class Meta: ordering = ['last_name']
See the manual for further reference.
EDIT. Another solution is to add a property to your Event model, that you can access from your template:
class Event(models.Model): # ... @property def sorted_attendee_set(self): return self.attendee_set.order_by('last_name')