BIS fnc sortAlphabetically: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
Lou Montana (talk | contribs) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma3 | |||
|version1= 1.10 | |||
| | |gr1= Arrays | ||
| | |gr2= Strings | ||
| Alphabetically sort an array of strings without modifying the original. See also [[sort]]. | |descr= Alphabetically sort an array of strings without modifying the original. See also [[sort]]. | ||
| arrayOfStrings call [[BIS_fnc_sortAlphabetically]] | |s1= arrayOfStrings call [[BIS_fnc_sortAlphabetically]] | ||
|p1= arrayOfStrings: [[Array]] of [[String | |p1= arrayOfStrings: [[Array]] of [[String]]s | ||
| [[Array]] of [[String | |r1= [[Array]] of [[String]]s sorted alphabetically. | ||
|x1= < | |x1= <sqf>private _sortedNames = ["John", "Jane", "Julia", "Geronimo"] call BIS_fnc_sortAlphabetically; // will return ["Geronimo", "Jane", "John", "Julia"]</sqf> | ||
|seealso= [[BIS_fnc_sortBy]] [[BIS_fnc_sortNum]] [[sort]] | |||
}} | }} | ||
Latest revision as of 14:48, 8 November 2023
Description
- Description:
- Alphabetically sort an array of strings without modifying the original. See also sort.
- Execution:
- call
- Groups:
- ArraysStrings
Syntax
- Syntax:
- arrayOfStrings call BIS_fnc_sortAlphabetically
- Parameters:
- arrayOfStrings: Array of Strings
- Return Value:
- Array of Strings sorted alphabetically.
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_sortBy BIS_fnc_sortNum sort
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