---
name: "tvSortByValueAll"
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/tvSortByValueAll
revid: 378327
updated: 2026-04-02T16:30:32Z
---

# tvSortByValueAll

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

## Description

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

## Syntax

```sqf
control tvSortByValueAll [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 tvSortByValueAll [[], false]; // Sorts the complete Tree View
```

## See also

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

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