У меня есть DataTable, и я хочу удалить порядок сортировки по умолчанию. Я пытался сделать это так:
"order": [[-1, "asc"]]
или "order": false
Это работает, но оно также удаляет paginate и searchbox, и я не хочу этого.
Как я могу это сделать?
<table id="dtBasicExample" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
<thead>
<tr>
<th>Estatus</th>
<th>Tipo Documento<i class="fa fa-sort"></i></th>
<th>Nº Electrónico<i class="fa fa-sort"></i></th>
<th>Fecha<i class="fa fa-sort"></i></th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
</tfoot>
</table>
<script>
$(document).ready(function(){
$('#dtBasicExample').DataTable({
"order": [[-1, "asc"]]
});
$('.dataTables_length').addClass('bs-select');
});
</script>