---
name: "tvSortAll"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/tvSortAll
revid: 377598
updated: 2026-01-02T07:01:08Z
---

# tvSortAll

*Command · GUI Control - Tree View · Arma 3 v2.02*

## Description

Sorts all children, including trees deriving from given path. Text of Tree View entries is used for sorting.

## Syntax

```sqf
control tvSortAll [path, reversed]
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md) - path to start sorting from
- `reversed`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to reverse sort it.

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
_ctrl tvSortAll [[], false]; // sorts the complete Tree View
```

## See also

[tvSort](../commands/tvSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [tvSortByValueAll](../commands/tvSortByValueAll.md)

<sub>Source: [BI Community Wiki — tvSortAll](https://community.bistudio.com/wiki/tvSortAll) (revision 377598).</sub>
