I'm trying to merge 2 pagetypes into a single SSList where the classes alternate, ie something like this:
$news = BlogPost::get()->sort('PublishedDate');
$projects = ProjectPage::get();
result should be a list where the pagetypes alternate:
BlogPost | ProjectPage | BlogPost | ProjectPage etc...
Any ideas would be appreciated!
Got this solved via some ideas from ChatGPT - may not be the best way, but seems to work, and accounts for uneven sets: