How to change the default sort order in DataTable?

Hello, I am using datatable with ajax to load my data. I have added the below config in my js file.

processing: true,
serverSide: true,
serverMethod: 'post',

On my server side, I am getting the below order request from datatable.

order[0][column] = 0
order[0][dir] = asc

How do I configure the default column and sort order in datatable?

In your datatable configuration you can define the sort order.

processing    : true,
serverSide    : true,
serverMethod  : 'post',
order         : [[1, "desc"]],

Here, the first key is the index of the column you want to sort.