Trying to format a date for sorting but wont sort

I am using the treegrid control. The parent node is a date formated as %B %d, %Y.

Here is my code. So…how do I sort? What is wrong?


grid.setColTypes(“tree,ron[=sum],ro[=sum],ro”);
grid.setDateFormat("%B %d, %Y");
grid.enableStableSorting(true);
grid.setNumberFormat(“0,000”,1);
grid.setNumberFormat(“0,000”,2);
grid.setColSorting(“date,na,na,na”);

grid.setSortImgState(true, 0, “ASC”);

Can you please provide example of xml which you are loading to the treeGrid?