How do I sort my datatables result

How do I sort my datatables result

mvandergmvanderg Posts: 2Questions: 2Answers: 0

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.