Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Predicate query sort order

Avatar

Level 6

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&prop...

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

1 Accepted Solution

Avatar

Correct answer by
Level 6

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

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