Fix datatable sorting not working