I've got a bunch of dataobjects (lets call them Events) that each have a related category (EventCategory) and I'd like to return these to the template view so that I could show the events listed by category, something like:
Category 1 title
Event name
Event name
Category 2 title
Event name
Category 3 title
Event name
Event name
How would I go about doing this, so that I can have a dynamic amount of categories (a category will always have events too)?