The tree should be:
root
-1
--2
-4
--3
the path property is correctly set: 3 path is 56fbcfde91c3eca907b561b0#56fbd40c947323790b06c02e#56fbd408947323790b06c02d translatable into root 4 3.
When I use rootcat.getChildrenTree({options:{sort:'order'}}, callback); the result is:
1
--2
--3
4
but if I don't use the order strategy rootcat.getChildrenTree(callback); the result is right!
I using mongoose v4.4.10, nodejs v0.10.25 and mongodb v3.2.1
I have some problem to fetch children of node, my data is:
The tree should be: root -1 --2 -4 --3 the path property is correctly set: 3 path is
56fbcfde91c3eca907b561b0#56fbd40c947323790b06c02e#56fbd408947323790b06c02d
translatable intoroot 4 3
. When I userootcat.getChildrenTree({options:{sort:'order'}}, callback);
the result is: 1 --2 --3 4 but if I don't use the order strategyrootcat.getChildrenTree(callback);
the result is right!I using mongoose v4.4.10, nodejs v0.10.25 and mongodb v3.2.1