ordering of columns is broken here: datatables.net/..../examples/server_side/row_details.htm

ordering of columns is broken here: datatables.net/..../examples/server_side/row_details.htm

david_lyondavid_lyon Posts: 8Questions: 0Answers: 0
edited November 2013 in General
It appears to me the ordering function is broken here:
http://datatables.net/release-datatables/examples/server_side/row_details.html

Is there a fix for this? I am also using this code and my ordering of columns is also not working.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    It looks like there is an off by one error in the server-side processing script. The example has been completely rewritten for DataTables 1.10, but you probably don't want to go down that route, since its still in development :-).

    The easiest fix is to subtract 1 from the sorting column number in the server-side script to sort on the correct column.

    Allan
  • david_lyondavid_lyon Posts: 8Questions: 0Answers: 0
    Thanks allan, that works....
This discussion has been closed.