New issue
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
Example Code under node.sort(compare) #48
Comments
The code is correct as-is; it is sorting by the aggregate values computed and set by node.sum on the previous line, not the data.value. |
Apologies, skipped over the implication of the On a related aside then, maybe it would be valuable, pardon the pun, to add the
e.g.:
Just an idea from someone who seems to have read too fast. Your call. |
That’s a nice idea. I’ll make that change unless you beat me to it! Thanks.
|
Clearly you beat me to it... 😄 |
The first example under the node.sort(compare) contains the code snippet:
This should probably read:
as the sort function passes in nodes.
The text was updated successfully, but these errors were encountered: