Skip to content
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

[BUG] Sorting of nested arrays is broken #185

Open
severgun opened this issue Jan 11, 2022 · 0 comments
Open

[BUG] Sorting of nested arrays is broken #185

severgun opened this issue Jan 11, 2022 · 0 comments
Assignees
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash

Comments

@severgun
Copy link

Describe the bug
Sorting of nested arrays is broken.
Tested at 9fa0a3a

To Reproduce

private _pp = [[0,0,3,"Head"],[0,0,4,"Body"],[0,0,1.00125,"LeftArm"],[0,0,1.56359,"RightArm"],[0,0,1.1933,"LeftLeg"],[6.17301,2.05767,1.80874,"RightLeg"],[0,0,1,"#structural"]];
_pp sort false;
_pp

[[0,0,1,"#structural"],[6.17301,2.05767,1.80874,"RightLeg"],[0,0,1.1933,"LeftLeg"],[0,0,1.56359,"RightArm"],[0,0,1.00125,"LeftArm"],[0,0,4,"Body"],[0,0,3,"Head"]]

Expected behavior
[[6.17301,2.05767,1.80874,"RightLeg"],[0,0,4,"Body"],[0,0,3,"Head"],[0,0,1.56359,"RightArm"],[0,0,1.1933,"LeftLeg"],[0,0,1.00125,"LeftArm"],[0,0,1,"#structural"]]

@severgun severgun added the bug Error, flaw, failure or fault that causes to produce an incorrect result or crash label Jan 11, 2022
@X39 X39 self-assigned this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash
Projects
None yet
Development

No branches or pull requests

2 participants