BIS fnc sortNum: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Text replacement - "\[\[Category\:Function Group\: Numbers(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\] " to "") |
||
Line 37: | Line 37: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:sortNum}}]] | [[Category:Functions|{{uc:sortNum}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:sortNum}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:sortNum}}]] |
Revision as of 09:24, 12 October 2020
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.
- Execution:
- call
- Groups:
- Arrays
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
- See also:
- sortBIS_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