I have a overview page that combines with two sections (documentation and galleries). Those two sections are attached to a parent Event. So you can select in the event entry a gallery or a documentation entry.
Question: How can i display those in order of the event's entry event day?
{% set entryGalleryIds = craft.entries.section('gallery').ids() %}
{% set entryDocumentationIds = craft.entries.section('documentation').ids() %}
{% set allEntryIds = entryGalleryIds|merge(entryDocumentationIds) %}
{% set allEntries = craft.entries.id(allEntryIds)|batch(3) %}
...
So i'm looking like something as:
{% set allEntries = craft.entries.id(allEntryIds).orderBy('events.eventDate desc')|batch(3) %}
Note: When i first query all the projects and then query the related galleries the sorting is gone, because of my id(allEntryIds) filter.