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

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

  • November 16, 2022
  • 2 replies
  • 629 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

krati_garg
Adobe Employee
Adobe Employee
November 16, 2022

@ronnie09 

Can you post the query and the result snapshot here

KNanCommunity AdvisorAccepted solution
Community Advisor
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