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

Search and sort based on properties of referenced nodes


Level 3

What is the best way to search and sort JCR nodes[having references to another set of nodes] based on a properties on the referenceable nodes they are referencing ?

Please look at the below sample node structure




: name - String - Test1

: propertyX- Reference - uuid1


: name - String - Test2

: propertyX- Reference - uuid2







: title- String - TestTitle1

: id - String- 123

: jcr:uuid - uuid1



: title- String - TestTitle2

: id - String- 453

: jcr:uuid - uuid2


Now I would like to search and sort child nodes  under parent-node-a based on the tile property on the nodes they are reference from parent-node-b. Appreciate any guidance here.

2 Replies


Community Advisor

Hi @Seek_AEM -

Do you mean, you have access to child-node-b1, child-node-b2 and want to search parent-node-a for the child nodes with propertyx-reference values uuid1 and uuid2, sorted by the name property?