BIS_fnc_sortNum

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Sorts an array of numbers from lowest (left) to highest (right). The passed array is modified by reference. This function uses the quick sort algorithm.
Arma 3 logo black.png
If you do not need the return value, use sort instead.

Syntax

Syntax:
array call BIS_fnc_sortNum
Parameters:
array: Array - Array of numbers.
Return Value:
Array - Sorted array

Examples

Example 1:
[5,9,987,6,97,8,6] call BIS_fnc_sortNum; // Returns [5,6,6,8,9,97,987]

Additional Information

Execution:
call
Multiplayer:
-
See also:
sortBIS_fnc_randomInt BIS_fnc_geometricMean BIS_fnc_arithmeticMean BIS_fnc_nearestNum BIS_fnc_roundNum

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To


Notes

Bottom Section