PDA

View Full Version : Ext.tree.TreeSorter in ExtJS 4



LisburnLad
3 Nov 2011, 1:28 PM
In version 3 I used the TreeSorter to sort the nodes in a tree branch into alphabetical order. In version 4 the TreeSorter no longer appears to exist. I've tried adding a:


sorters: [{property:'text', direction: 'ASC'}]

into the associated store, but this doesn't seem to have any effect.

Does anyone know how to sort a tree in Version 4?

Thanks,
Steve

LisburnLad
3 Nov 2011, 1:38 PM
I've just found the answer - I also needed to add "folderSort: true" into the underlying tree store

mankz
3 Nov 2011, 4:45 PM
Don't forget to mark your question as answered :)