Jump to content
Sign in to follow this  
serena

Unexpected behavior of BIS_fnc_sortNum

Recommended Posts

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

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


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

This is unwanted behaviour indeed. The fix will be added to the public dev soon. 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×