---
name: "lnbSortByValue"
type: command
status: ok
groups: ["GUI Control - ListNBox"]
arma3_since: "1.08"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lnbSortByValue
revid: 330120
updated: 2022-08-21T19:54:07Z
---

# lnbSortByValue

*Command · GUI Control - ListNBox · Arma 3 v1.08*

## Description

Sorts given multicolumn listbox by [lnbValue](../commands/lnbValue.md) in given column in ascending or descending order.

## Syntax

### Syntax 1

```sqf
lnbSortByValue [idc, column, reversed]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `column`: [Number](../topics/Number.md)
- `reversed`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [false](../commands/false.md): descending / [true](../commands/true.md): ascending

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

### Syntax 2

```sqf
control lnbSortByValue [column, reversed]
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `column`: [Number](../topics/Number.md)
- `reversed`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [false](../commands/false.md): descending / [true](../commands/true.md): ascending

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

## Examples

### Example 1

```sqf
lnbSortByValue [1800, 1, false];
```

### Example 2

```sqf
_ctl lnbSortByValue [1, true];
```

## See also

[lbSortBy](../commands/lbSortBy.md) · [lnbSortBy](../commands/lnbSortBy.md) · [lbSort](../commands/lbSort.md) · [lnbSort](../commands/lnbSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [lbSortByValue](../commands/lbSortByValue.md) · [tvSort](../commands/tvSort.md)

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