{"name":"BIS_fnc_sortAlphabetically","operator":null,"title":"BIS fnc sortAlphabetically","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sortAlphabetically","revid":348643,"updated":"2023-11-08T13:48:23Z","groups":["Arrays","Strings"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.10"}],"since":{"game":"arma3","name":"Arma 3","version":"1.10"},"arma3_since":"1.10","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Alphabetically sort an array of strings without modifying the original. See also sort.","syntaxes":[{"syntax":"arrayOfStrings call BIS_fnc_sortAlphabetically","since":null,"effect":null,"exec":null,"params":[{"name":"arrayOfStrings","type":"Array of Strings","optional":false,"default":null,"description":null,"types":["Array","String"],"since":null,"text":"arrayOfStrings: Array of Strings"}],"returns":{"type":"Array of Strings sorted alphabetically.","types":["Array","String"],"description":null,"text":"Array of Strings sorted alphabetically."}}],"examples":[{"text":"```sqf\nprivate _sortedNames = [\"John\", \"Jane\", \"Julia\", \"Geronimo\"] call BIS_fnc_sortAlphabetically; // will return [\"Geronimo\", \"Jane\", \"John\", \"Julia\"]\n```","code":["private _sortedNames = [\"John\", \"Jane\", \"Julia\", \"Geronimo\"] call BIS_fnc_sortAlphabetically; // will return [\"Geronimo\", \"Jane\", \"John\", \"Julia\"]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_sortBy","BIS_fnc_sortNum","sort"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Arrays","Function Group: Strings","Functions","Introduced with Arma 3 version 1.10"],"docblock":null,"filled_from_docblock":[]}