I am using Datatables to print HTML tables,here i am stuck with something like:
table is dynamically created (printed with while loop) due to which I don't know how many columns will it have. After that I applied datatables on
$('#table').dataTable( {
            "bDestroy":true,        
            "sScrollY": temp_fh,             
            "bPaginate": false,
            "bScrollCollapse": true,
            "bProcessing": true,
            "bFilter":true,
            "bSort":true,
                  });
So now how do I apply sorting for only 2nd column?
Since I referred bSortable from Datatables which allows us to disable sorting for particular column but in this case we don't known how much columns will table have.
Thanks.