tvSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " 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. Text of [[CT_TREE|Tree View]] entries is used for sorting. |DESCRIPTION=
  | Sorts all children of given path. Text of [[CT_TREE|Tree View]] entries is used for sorting.


| control [[tvSort]] [path, reversed] |SYNTAX=
| control [[tvSort]] [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 |PARAMETER4=
| p3= path: [[Array]] - [[Tree View Path]] of the parent item to sort


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


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


|s2 =[[tvSort]] [idc, path, reversed] |SYNTAX2=
|s2 =[[tvSort]] [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 [[tvSort]] [<nowiki/>[0], [[true]]];</code> |EXAMPLE1=
|x1= <code>control [[tvSort]] [<nowiki/>[0], [[true]]];</code>


|x2= <code>[[tvSort]] [102, [0], [[true]]];</code> |EXAMPLE2=
|x2= <code>[[tvSort]] [102, [0], [[true]]];</code>


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



Revision as of 11:25, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
control tvSort [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:
tvSort [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 tvSort [[0], true];
Example 2:
tvSort [102, [0], true];

Additional Information

See also:
tvSortAll tvSortByValue 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

Notes

Bottom Section