BIS_fnc_sortBy

From Bohemia Interactive Community
Revision as of 15:00, 2 April 2016 by R3vo (talk | contribs)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Sorts an array according to given algorithm.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_sortBy;
Parameters:
Array - Unsorted array which can contain any types (object/numbers/strings ..)
Array - - used in the eval algorithm (object/numbers/strings ..) - input params are referenced in the sorting algorithm by _input0, _input1 .. _input9 - max. number of 10 input params is supported (0-9)
Code - sorted algorithm [optional: default {_x}]
String -sort direction [optional: default "ASCEND"] "ASCEND": sorts array in ascending direction (from lowest value to highest) "DESCEND": sorts array in descending direction
Code - filter default {true}] - code that needs to evaluate true for the array item to be sorted, otherwise item is removed
Return Value:
Array

Examples

Examples:
Example needed

Additional Information

See also:
BIS_fnc_sortAlphabeticallyBIS_fnc_sortNumsort

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

Notes

Bottom Section