BIS_fnc_sortNum

From Bohemia Interactive Community
Jump to navigation Jump to search
Hover & click on the images for description

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
If you do not need the return value, use sort instead.
Execution:
call
Groups:
Arrays

Syntax

Syntax:
array call BIS_fnc_sortNum
Parameters:
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

See also:
sort BIS_fnc_randomInt BIS_fnc_geometricMean BIS_fnc_arithmeticMean BIS_fnc_nearestNum BIS_fnc_roundNum

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note