We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: