User665608656 posted
Hi jsshivalik,
According to your description, I tested it with your code and everything worked fine.
You could refer to the relevant links :https://itsolutionstuff.com/post/datatable-disable-sorting-on-particular-column-exampleexample.html
https://stackoverflow.com/questions/47322035/how-to-disable-sorting-of-only-one-specific-column-in-data-tables
Or you could refer to my code below :
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css" />
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script type="text/javascript">
$(function () {
$('#example').DataTable({
order: [],
columnDefs: [{ orderable: false, targets: [0, 1] }]
});
});
</script>
Here is thr result of this work demo:

Best Regards,
YongQing.