runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[BUG] Sorting of nested arrays is broken

Open severgun opened this issue 2 years ago • 0 comments

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

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 avatar Jan 11 '22 08:01 severgun