Change display order

Change display order

RafiWskYRafiWskY Posts: 3Questions: 0Answers: 0
edited July 2013 in General
I would like to change the display order of the results table.

My table looks like this:


And I'm using this javascript code:


$(document).ready(function() {
$('.table table-bordered data-table').dataTable( {
"aaSorting": [[ 4, "desc" ]]
} );
} );


But it's not working, what should I do?

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Link to a test case please: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • RafiWskYRafiWskY Posts: 3Questions: 0Answers: 0
    Follows the code as requested

    http://jsfiddle.net/PTnpT/

    Or is it better to send the whole code jquery.dataTables.min ?
  • RafiWskYRafiWskY Posts: 3Questions: 0Answers: 0
    Please can someone help me?

    The table is in ascending order I would like to stay in descending order.

    Thank you.
This discussion has been closed.