AEM query builder to fetch the cq:Pages under a path based on some tags in descending order based on multiple value
I want to write a query in AEM query builder to fetch the cq:Pages under a path based on some tags in descending order based on multiple value.
I am able to write the query but the sorting part is little tricky. We have to sort the result primarily on publishedDate. if it is not there then use the lastmodified date.
Only the sorting part I'm struggling. Please help
