Arma 3 Scripting

Command in GUI Control - ListBox

lbSortByValue

Also available as Markdown and JSON, or read the original wiki page.

Description

Sorts the ListBox entries by lbValue. The entries are sorted in ascending order. Also note that this command will mix up the entries randomly if multiple entries have the same value. In Arma 3 use lbSortBy to avoid this problem.

Syntax

Syntax 1

lbSortByValue control

Parameters:

Returns: Nothing

Syntax 2

since arma3 1.68

lbSortByValue idc

Parameters:

Returns: Nothing

Examples

Example 1

lbSortByValue _control;

Example 2

lbSortByValue 101;

See also

lbSortBy · lbSort