tvSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.74|Game version=
|0.74


|gr1= GUI Control - Tree View |GROUP1=
|gr1= GUI Control - Tree View


| Sorts all children of given path. Value of [[CT_TREE|Tree View]] entries is used for sorting. |DESCRIPTION=
| Sorts all children of given path. Value of [[CT_TREE|Tree View]] entries is used for sorting.


| control [[tvSortByValue]] [path, reversed] |SYNTAX=
| control [[tvSortByValue]] [path, reversed]


| p1= control: [[Control]] |PARAMETER1=
| p1= control: [[Control]]


| p2= [path, reversed]: [[Array]] |PARAMETER2=
| p2= [path, reversed]: [[Array]]


| p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort |PARAMETER3=
| p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort


| p4= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]] |PARAMETER4=
| p4= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


| s2 =[[tvSortByValue]] [idc, path, reversed] |SYNTAX2=
| s2 =[[tvSortByValue]] [idc, path, reversed]


| p21= [idc, path, reversed]: [[Array]] |PARAMETER21=  
| p21= [idc, path, reversed]: [[Array]] |PARAMETER21=  
Line 31: Line 31:
| p24= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]]  |PARAMETER24=  
| p24= reversed (Optional): [[Boolean]] - [[true]] to reverse sort it. Default: [[false]]  |PARAMETER24=  


|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]]


|x1= <code>control [[tvSortByValue]] [<nowiki/>[0], [[false]]];</code> |EXAMPLE1=
|x1= <code>control [[tvSortByValue]] [<nowiki/>[0], [[false]]];</code>


|x2= <code>[[tvSortByValue]] [102, [0], [[false]]];</code> |EXAMPLE2=
|x2= <code>[[tvSortByValue]] [102, [0], [[false]]];</code>


| [[tvSortAll]] [[tvSort]] [[tvSortByValueAll]]|SEEALSO=
| [[tvSortAll]] [[tvSort]] [[tvSortByValueAll]]
}}
}}



Revision as of 11:24, 18 January 2021

Hover & click on the images for description

Description

Description:
Sorts all children of given path. Value of Tree View entries is used for sorting.
Groups:
GUI Control - Tree View

Syntax

Syntax:
control tvSortByValue [path, reversed]
Parameters:
control: Control
[path, reversed]: Array
path: Array - Tree View Path of the parent item to sort
reversed (Optional): Boolean - true to reverse sort it. Default: false
Return Value:
Nothing

Alternative Syntax

Syntax:
tvSortByValue [idc, path, reversed]
Parameters:
[idc, path, reversed]: Array
idc: Number - control idc
path: Array - Tree View Path of the parent item to sort
reversed (Optional): Boolean - true to reverse sort it. Default: false
Return Value:
Nothing

Examples

Example 1:
control tvSortByValue [[0], false];
Example 2:
tvSortByValue [102, [0], false];

Additional Information

See also:
tvSortAll tvSort tvSortByValueAll

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note