How do I sort my datatables result
How do I sort my datatables result
![mvanderg](https://secure.gravatar.com/avatar/084e3e8298a7d22086ce0796dbd3866c/?default=https%3A%2F%2Fvanillicon.com%2F084e3e8298a7d22086ce0796dbd3866c_200.png&rating=g&size=120)
Hi,
I have the following code:
$(document).ready(function() { $('#services').dataTable( { "ajax": { "url": "/wm-actional-db-mon/NumberOfNodesJSON?environment=<%=request.getParameter("environment")%>&numberOfInstances=<%=request.getParameter("numberOfInstances")%>" } } ); } );How can I sort the result desc on column 4.
Looked at the sample that shows:
$('#example').dataTable( {
"order": [[ 3, "desc" ]]
} );
Any help is will be much appreciated.
This discussion has been closed.