---
name: "BIS_fnc_sortAlphabetically"
type: function
status: ok
groups: ["Arrays", "Strings"]
arma3_since: "1.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_sortAlphabetically
revid: 348643
updated: 2023-11-08T13:48:23Z
---

# BIS_fnc_sortAlphabetically

*Function · Arrays, Strings · Arma 3 v1.10*

## Description

Alphabetically sort an array of strings without modifying the original. See also [sort](../commands/sort.md).

## Syntax

```sqf
arrayOfStrings call BIS_fnc_sortAlphabetically
```

**Parameters:**

- `arrayOfStrings`: [Array](../topics/Array.md) of [String](../topics/String.md)s

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s sorted alphabetically.

## Examples

### Example 1

```sqf
private _sortedNames = ["John", "Jane", "Julia", "Geronimo"] call BIS_fnc_sortAlphabetically; // will return ["Geronimo", "Jane", "John", "Julia"]
```

## See also

[BIS_fnc_sortBy](../functions/BIS_fnc_sortBy.md) · [BIS_fnc_sortNum](../functions/BIS_fnc_sortNum.md) · [sort](../commands/sort.md)

<sub>Source: [BI Community Wiki — BIS fnc sortAlphabetically](https://community.bistudio.com/wiki/BIS_fnc_sortAlphabetically) (revision 348643).</sub>
