Sort functionality when Tree is loading


Hello,<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>



<o:p> </o:p>



1. I am looking for sort functionality(Ascending order) when tree is loading.  Is it possible to define in JSON object itself or please let me know the best way.<o:p></o:p>



<o:p> </o:p>



<o:p>2. How to cal a function when tree is loading?</o:p>



<o:p> </o:p>



3. Please send me complete JSON format with all parameters so that I can go through the list as per my requirement.



<o:p> </o:p>



Thanks,<o:p></o:p>



RamaRao R.<o:p></o:p>


Hello,


it is better to sort tree items on server if json is generated by some server-side script.


But also it is possible to sort tree after loading:


tree.loadJSON(“some.json”,function(){


tree.sortTree(0,“asc”,1)


})