QueryBuilder is not fetching node in same order present in crx/de or site admin | Community
Skip to main content
Level 6
Nov 16, 2022 11:10 AM UTC
Solved

QueryBuilder is not fetching node in same order present in crx/de or site admin

I tried fetching the node from query builder it is returning nodes in random order. I want to fetch it in the same order as it is present in CRX/de or site admin is there any way to do that?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
KNanAccepted solution
New Participant
Nov 16, 2022 1:28 PM UTC

Hi

If you need to order, you have put the order by clause. Following will sort by node path(tree)

orderby = @6655266:path  

can simply use navigational access (node.getNodes()) in case you want node order.

Thanks 

2 replies

KNanAccepted solution
New Participant
Nov 16, 2022 1:28 PM UTC

Hi

If you need to order, you have put the order by clause. Following will sort by node path(tree)

orderby = @6655266:path  

can simply use navigational access (node.getNodes()) in case you want node order.

Thanks 

Translate
krati_garg
Employee
Nov 16, 2022 12:54 PM UTC

@ronnie09 

Can you post the query and the result snapshot here

Translate