-
Notifications
You must be signed in to change notification settings - Fork 121
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
sort() seems not to work #111
Comments
Since I'm a noob in JS, to me it looks like there are two issues:
In attached example I'm trying to apply following sorting function:
|
No, I think it's not that simple. See attached video with attached sample. Two problems here:
|
Maybe I don't understand how it supposed to work. My assumption is that sorting only applies to nodes with the same parent AND on the same level. My current workaround is to sort when generating data. Though it would be nice to be able to specify different sorting orders once html is generated. |
I think I know why it's broken. Two reasons:
|
So, I guess it's not broken at all, but I'll leave it open for now to verify. |
Also |
I tried
flamegraph.sort(true)
and passing different functions as well (I want to sort byvalue
and/ordelta
). With justflamegraph.sort(true)
it should be sorted by names, but nodes are sorted as["N", "b", "a", "S"]
- I don't think it's sorted in any way. I'll attach some sample soon.The text was updated successfully, but these errors were encountered: