jQuery dataTables column sorting issue -


using jquery datatables plugin, have following rendering table (code within each render has been simplified brievity):

table = $('#index')     .datatable({         order: [[1, 'desc']],         autowidth: false,         lengthchange: false,         pagelength: numrows,         ajax: {             url: 'gettabledata/' + application,             datasrc: ''         },         columns: [             {                 data: null,                 render: function (data, type, row) {                     return '<span></span>';                 }             },             {                 data: null,                 render: function (data, type, row) {                     return '<span></span>';                 }             },             {                 data: null,                 render: function (data, type, row) {                     return '<span></span>';                 }             },             {                 data: null,                 render: function (data, type, row) {                     return '<span></span>';                 }             }         ]     }); 

no matter column number or direction set order: [[1,'desc']] to, sorts column 1 asc.

where having disconnect in code?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -