I have a JQuery data table with sorting,searching and page row limit functions. Searching is working fine.
But sorting and page row limit function is not working firstly loaded page. If i search something and try page row limit function and sorting then working fine.
My script code:
<script>
$(document).ready(function() {
$('#dataTables-example').dataTable({
"serverside": true,
"searching": true,
"ordering": true,
"deferLoading": 57,
"displayStart": 20,
"order":[2, "asc"]
});
});
</script>
(this script is after the table html code.)
I can't figure out the error here. please help me.