Arma 3 Scripting

lbSortByValue

  • Arma 3 v0.50
  • First in Armed Assault v1.08

Command · Markdown · JSON · 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

Community notes

RoehrenRadio

A good way to avoid that this Command will mix your Listbox up is, to assign your Value summed up with the Index ID returned by lbAdd to your Listbox Entries.

ffur2007slx2_5

More information on the LB command family can be found here