For now I think it makes sense as just a per node option.
Another API possibility would be something like
| enum Sorting {CHILDREN, DATA, BOTH}
| cache.createSortedNode(Fqn fqn, Sorting sorting);
| cache.createSortedNode(Fqn fqn, Sorting sorting, Comparator<?> nodeComp,
Comparator<?> dataComp);
|
Then you don't have to worry about the sorting switching back and forth on you, as it
would be fixed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168869#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...