Hi,
I'm looking a way to get hold of the child nodes in the order of the node names using any API. The oob api getNodes doesnt have any overloaded method which i can use to sort the child nodes using node name. i stumbled upon the BTreeManager, but not sure if that can be used for that purpose.
I can write something up but wanted to check if anyone knows of any API's which can be used for this?
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
According to this topic -- you can perform this task using XPath:
http://docs.jboss.org/exojcr/1.12.13-GA/developer/en-US/html/ch-jcr-query-usecases.html#JCR.OrderByD...
More information here too:
http://jackrabbit.510166.n4.nabble.com/get-child-nodes-sorted-by-jcr-name-td3520099.html
Views
Replies
Total Likes
According to this topic -- you can perform this task using XPath:
http://docs.jboss.org/exojcr/1.12.13-GA/developer/en-US/html/ch-jcr-query-usecases.html#JCR.OrderByD...
More information here too:
http://jackrabbit.510166.n4.nabble.com/get-child-nodes-sorted-by-jcr-name-td3520099.html
Views
Replies
Total Likes
Thanks for the links. I'll take a look at them and get back in case i face any issues.
Views
Replies
Total Likes
Views
Likes
Replies