tvSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 32: Line 32:
|r2= [[Nothing]]
|r2= [[Nothing]]


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


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

Revision as of 11:28, 13 May 2022

{{RV|type=command

|game1= arma3 |version1= 0.74

|gr1= GUI Control - Tree View

|descr= Sorts all children of given path. Value of Tree View entries is used for sorting. tvSetValue can be used to set the value for a given path.

|s1= control tvSortByValue [path, ascending]

|p1= control: Control

|p2= [path, reversed]: Array

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

|p4= ascending (Optional): Boolean - true to sort ascending, else descending. Default: false

|r1= Nothing

|s2=tvSortByValue [idc, path, ascending]

|p21= [idc, path, reversed]: Array

|p22= idc: Number - control idc

|p23= path: Array - Tree View Path of the parent item to sort

|p24= ascending (Optional): Boolean - true to sort ascending, else descending. Default: false

|r2= Nothing

|x1= control tvSortByValue [[0], false];

|x2=

tvSortByValue [102, [0], false];

|seealso= lbSortBy lnbSortBy tvSortAll tvSort tvSortByValueAll }}