View Single Post
  #4  
Old 11-02-2007, 01:43 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote