Arma 3 Scripting

BIS_fnc_sortNum

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

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.

Note

Arma 3: If you do not need the return value, use sort instead.

Syntax

array call BIS_fnc_sortNum

Parameters:

Returns: 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]

See also

sort · BIS_fnc_randomInt · BIS_fnc_geometricMean · BIS_fnc_arithmeticMean · BIS_fnc_nearestNum · BIS_fnc_roundNum