Sorting an array before a text aggregator module, and inserting multiple text aggregator output bundles in a single email

I have spent way too much time on this scenario; please help with the last (?) two hurdles.

Short version: My scenario starts with a Notion>search for items module that outputs multiple bundles. Next is a text aggregator, with a grouping. And then I want to send an email (a single email) with each aggregated bundle, with a heading for each group.

Here is the output of the text aggregator:

One of the properties in the array is a date, and I want the items to be arranged chronologically. I’m having trouble figuring out what module to add between the Notion module and the text aggregator module to use the sort() function, or how to use the sort() function in the text aggregator.

The second problem I’m having is how to get these two bundles into the text of a single email, with the Key labels as headings. I thought a second text aggregator would be the answer because that would take my two bundles and make them one, but that gave this output, which you’ll see has empty headings.

So instead I tried an array aggregator, but while the aggregator output looked correct, the email module only included one of the event types:

Blueprint:

weekly regular schedule email.blueprint.json (99.5 KB)