BIS_fnc_sortNum

From Bohemia Interactive Community
Revision as of 20:48, 4 August 2019 by Lou Montana (talk | contribs) (Add sort link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Arma 2 version 1.001.00
Hover & click on the images for descriptions

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
See also:
sortBIS_fnc_randomInt BIS_fnc_geometricMean BIS_fnc_arithmeticMean BIS_fnc_nearestNum BIS_fnc_roundNum

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.


Notes

Bottom Section