No sorting with data-sort in createdCell

No sorting with data-sort in createdCell

marwmarw Posts: 1Questions: 1Answers: 0

I have this block of code to create data-sort attributes, but it does not work: after clicking the column heading nothing happens. The table is created correctly, the attributes are there.

Any thoughts? Thanks!

"createdCell": function (td, cellData, rowData, row, col) {
    if ($.inArray(col, [2, 3, 4, 5]) != -1){
         $(td).addClass('queues');
         if (cellData.indexOf('-success') >= 0){
             $(td).attr('data-sort', 'available');
            }
            else{
              $(td).attr('data-sort', 'unavailable');  
            }
        };
This discussion has been closed.