QueryBuilder is not fetching node in same order present in crx/de or site admin | Community
Skip to main content
New Participant
November 16, 2022
Solved

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

  • November 16, 2022
  • 2 replies
  • 628 views

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.
Best answer by KNan

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
November 16, 2022

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 

krati_garg
Employee
November 16, 2022

@ronnie09 

Can you post the query and the result snapshot here