PDA

View Full Version : Problem with Treesorter



sseema
5 Dec 2011, 1:49 AM
Hi

I am using treesorter for my treepanel. I defined custom attributes...

like
fields:['text',{name:'run_order',type:'int'}],

My treesorter code...



var sorter = new Ext.tree.TreeSorter(Ext.getCmp("customers_orders_tree"), {property:'run_order',folderSort:true,dir: "asc",caseSensitive: true

});


run_order is type integer. But sorting is done for string ..It takes run_order as string type not an integer.
What is the mistake in my code.

Can any one please give me the idea.

I appreciate any help

Thank You.

mitchellsimoens
5 Dec 2011, 2:13 PM
What is the problem? Not sorting correctly? Not sorting at all?