This is the 'script still running" line 126 in dhtmlxcalenda


In the method sortRows(col, type, order) first parameter - colum index. In the grid first column index is “0”. Also you should call this method after grid was fully loaded:


mygrid.load(“DataTables/fsTable/transaction.csv”,function(){
mygrid.sortRows(0,“date”,“des”);
},“csv”);