I am getting data of invoice table but i want to sort data in desc This is my code:
var oTable = $('#ks-datatable').DataTable({
'processing': false,
'serverSide': true,
"searching": false,
/*"bLengthChange": false,*/
'ajax': '{{route('invoice.index')}}',
columns: [
{data: 'id', name: 'id'},
{data: 'client_name', name: 'client_name'},
{data: 'invoice_number', name: 'invoice_number'},
{data: 'date', name: 'date'},
{data: 'created_at', name: 'created_at'},
{data: 'amount', name: 'amount'},
{data: 'action', name: 'action', searchable: false},
]
});