Predicate query sort order | Community
Skip to main content
manoj_devapath
Level 5
April 30, 2019
Solved

Predicate query sort order

  • April 30, 2019
  • 1 reply
  • 2542 views

When I run a predicate query with sling:resourceType= apples/components/page/article and orderby=@jcr:content/cq:lastModified&orderby.sort=desc

I get results with  sling:resourceType= apples/components/page/article but I dont see sort order working.

http://localhost:4502/bin/querybuilder.json?path=/content/apples/en&property=sling:resourceType&property.value=apples/co…

path=/content/apples/en&property=sling:resourceType&property.value=apples/components/page/article&orderby=@jcr:content/cq:lastModified&orderby.sort=desc

Is there any issue with my query? Can some one help me with that

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by manoj_devapath

Figured it out

path=/content/apples/en

type=cq:Page

property=@jcr:content/sling:resourceType

property.value=apples/components/page/article

orderby=@jcr:content/cq:lastModified

orderby.sort=desc

1 reply

manoj_devapath
manoj_devapathAuthorAccepted solution
Level 5
April 30, 2019

Figured it out

path=/content/apples/en

type=cq:Page

property=@jcr:content/sling:resourceType

property.value=apples/components/page/article

orderby=@jcr:content/cq:lastModified

orderby.sort=desc