Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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