Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
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