serena 150 Posted May 4, 2016 Can someone explain who BIS_fnc_sortNum changes order of elements with equal weight: private _result = [[[5],[6],[7],[8],[9]], nil, {1}] call BIS_fnc_sortBy; // _result is: [[6],[7],[8],[9],[5]] This is unexpected behavior or am doing something wrong? Share this post Link to post Share on other sites
gc8 970 Posted May 4, 2016 have you tried: private _result = [[5,6,7,8,9], nil, {1}] call BIS_fnc_sortBy; ? it maybe that BIS_fnc_sortBy does not sort arrays properly. Share this post Link to post Share on other sites
serena 150 Posted May 4, 2016 private _result = [[5,6,7,8,9], nil, {1}] call BIS_fnc_sortBy; // _result = [5,6,7,8,9] Share this post Link to post Share on other sites
killzone_kid 1326 Posted May 4, 2016 This is unwanted behaviour indeed. The fix will be added to the public dev soon. 1 Share this post Link to post Share on other sites