TypeError no abierto: table.fncolreorder.transpose no es una función

//changing

var table = $('#sample_3').dataTable();
//to

var table = $('#sample_3').DataTable();
Perfect Peccary