
11-02-2007, 01:43 AM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
It's working similar to the GuiListViewCtrl sorting.
Options:
treeview.sortmode = "value" or "name" or "extension"
treeview.sortorder = "ascending" or "descending"
treeview.groupsortorder = "ascending" or "descending"
node.sortvalue - number
node.sortgroup - number
Sorting:
compare by node.sortgroup
if that is the same:
if mode is "value": compare by node.sortvalue
if mode is "extension": compare by extractfileext(node.name)
if they are still the same, compare simply by their name |
|
|
|