I use an application where we can manipulate JCR nodes, typically you would rename, remove, delete, or else move them.
Using the JCR API, I can access the nodes in my repository and return a set of nodes in the same order as they are in the JCR.
I would like to be able to do the same using the JCR SQL2 queries. I have not found anything about this & now start to believe this is not possible.
For instance, if I have a JCR tree such as:
parentNode
|_childNode1
|_childNode2
|_childNode3
|_childNode4
When querying using the JCR SQL2 it would return them in an order different from: childNode1, childNode2, childNode3, childNode4
I look in those docs among others: http://docs.jboss.org/jbossdna/0.7/manuals/reference/html/jcr-query-and-search.html#jcr-sql2-query-language http://www.day.com/specs/jcr/2.0/6_Query.html
Thanks in advance
EDIT: if using Java
for your search is an option, you might want to look at Recursive search in JCR repo via java
Probably NOT the most efficient though, so mind the performance hit.