Im grabbing entries from two sections and displaying them using the group filter.
{% set entries = craft.entries().section('extendedEvents, festivalEvents')%}
{% set allEvents = entries %}
{% set allEventsBySection = allEvents|group('section') %}
{% for section, eventsInSection in allEventsBySection %}
- results-
{% endfor %}
No matter what I do the results are coming back ordered as section2 (entry, entry, entry) then section 1 (entry, entry, entry)
How do I affect the order of the sections when displaying the results?
orderBy({sectionId: SORT_ASC})
in your main Query?