Hello, I'd like to sort pages by two selectors.
I have a custom field "startdesprojekts" it is of the type date.
I want to sort the pages by "startdesprojekts". Since it's possible that there is no date defined I'd like to sort by creation time, if "startdesprojekts" is undefined.
My code looks like this, but it doesn't do what I want.
$items = $page->children("include=hidden, sort=-modified")->append($pages->find("inNewsAnzeigen=1"))->filter("sort=-startdesprojekts, sort=-created");