-
6 Oct 2010 2:54 AM #11Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Something like:
Code:var sortByName = function(node1, node2){ var v1 = node1.text, v2 = node2.text; if (v1 < v2) { return -1; } else if (v1 > v2) { return 1; } return 0; }; var sortByCount = function(node1, node2){ var v1 = node1.attributes.count, v2 = node2.attributes.count; return v1 - v2; };
-
6 Oct 2010 2:56 AM #12
thanks condor...
I will try and let u know...u r really gr8
Similar Threads
-
com.extjs.gxt.samples.client.examples.tree.TreeTab leExample method "sort" is empty
By fother in forum Ext GWT: Help & Discussion (1.x)Replies: 4Last Post: 5 Jun 2009, 9:43 AM -
Server Side And Client Side Communication
By YargicX in forum Community DiscussionReplies: 3Last Post: 15 Apr 2008, 10:52 AM -
Reset Client Side Sort
By sfwalter in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 31 Oct 2007, 2:00 PM


Reply With Quote