Multiple order by clause (QueryBuilder) in AEM aka CQ5

 

Question: Trying to user querybuilder and need to have multiple order by clauses. Tried this, doesn’t work (in XPath I can see the order by doesn’t get added). What’s the correct syntax and where can I find more documentation on using these clauses?

1_orderby=@jcr:content/metadata/docType
1_orderby.sort=asc

2_orderby=@jcr:content/metadata/type
2_orderby.sort=asc

Answer: Helpful articles for reference:-

  • https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html
  • http://stackoverflow.com/questions/21676718/adobe-cq5-jcr-how-to-orderby-sorting-query-builder-result-using-nodes-propert
  • http://host:port/libs/cq/search/content/querydebug.html

Adobe AEM Community Thread Link

Leave a Reply

Your email address will not be published. Required fields are marked *