I wish to show the records using datatables with default ordering based on one of my rows with date & time in descending order. Please help me in editing the jquery stru
Default sorting in Datatables:
$(document).ready(function() { $('#example').DataTable({ "order": [[ 3, "desc" ]] }); });
You can use asc for ascending order. And 3 means, 4th column is going to be ordered default.