Description
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.
Syntax
Syntax 1
control tvSortByValue [path, ascending]
Parameters:
control: Controlpath: Tree View Path - the parent item to sortascending: Boolean - (Optional, default false) true to sort ascending, else descending
Returns: Nothing
Syntax 2
tvSortByValue [idc, path, ascending]
Parameters:
idc: Number - control idcpath: Tree View Path - the parent item to sortascending: Boolean - (Optional) true to sort ascending, else descending. Default: false
Returns: Nothing
Examples
Example 1
control tvSortByValue [[0], false];
Example 2
tvSortByValue [102, [0], false];
See also
lbSortBy · lnbSortBy · tvSortAll · tvSort · tvSortByValueAll