title: Sorting DAM asset and Cq page based on last modified
body: <p>I am trying to perform a freetext search on all the Cq:Page and dam:Asset with the ordering being the last modified.
  I have created the Query for search which is as below:</p>
  
  <pre><code>1_group.p.or=true
  1_group.1_type=cq:Page
  1_group.2_type=dam:Asset
  2_group.p.or=true
  2_group.1_path=/content
  2_group.2_path=/content/dam
  fulltext=text
  p.limit=-1
  </code></pre>
  
  <p>Now I need to sort the results based on last modified. But since cq:Page has property jcr:content/cq:lastModified and dam:Asset has property jcr:content/jcr:lastModified, I am unable to figure out which property should i use in the orderby field of predicate. Is there any way to form a predicate which uses different property values for pages and assets during sorting. Please let me know if we can achieve this in a single query.</p>
  
  <p>Regards,
  Shailesh</p>