Now I try to have a parent page to show the calendars of its children pages, adding the dates from one page to the other, sorting in ascending order (with title). I use the code you provides and try my best to make it work for my new purpose, without success. Can somebody point me in the right direction, thx
Apart from the fact that the if statement doesn’t make sense because if will always return true (a collection is always a collection even if it doesn’t have items) and the closing parenthesis is missing: what exactly doesn’t work as expected? Currently, you are only sorting the events of each subpage.