Open burakkilic opened 9 years ago
Hi;
I have following code:
var query = { condition: { }, fields: { }, sort: { order: 1 } }; Entity.findOne({ _id: req.params.entityid }, function(err, doc) { if (err) res.json(err); doc.getArrayTree(query, function(err, tree) { if (err) res.json(err); return res.json({ type: true, data: tree }); }); });
I see that children nodes are not sorted. When I debug, I saw that comes sorted until ToArrayTree was called.
How can we fix it?
Hi;
I have following code:
I see that children nodes are not sorted. When I debug, I saw that comes sorted until ToArrayTree was called.
How can we fix it?