Page History
...
Setting this property to "Ascending" or "Descending" causes to the item's children to always be sorted, even when new items are later added or removed. If you only want to perform a one-time sort, then use the Sort method instead.
The sorting relies upon the child items' ItemType property settings.
Use the DefSort property to set the default sorting of new items.
Example
Code Block |
---|
// Sort Item1 in descending order Set_Property(@Window:".OLE_TREE", "OLE.ItemSort[Item1]", "Descending") // Sort all items in ascending order Set_Property(@Window:".OLE_TREE", "OLE.ItemSort[All]", "Ascending") |