How can I disable initial sorting but still have sorting enabled?

How can I disable initial sorting but still have sorting enabled?

mirkwood07mirkwood07 Posts: 1Questions: 0Answers: 0
edited April 2010 in General
I want my table to be sortable, but I do not want to have the first-pass (initial) sorting happen on the table. The table is large, and a first-pass is just a waste of time since the database is giving back the results in the default sort order anyways.

Is it possible to do this?

Thanks!

Replies

  • MarcoMarco Posts: 2Questions: 0Answers: 0
    Hi,
    I've got the exact same need here.
    Have you been able to do it ?

    Thanks a lot for your help.
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    edited May 2010
    Set aaSorting to be an empty array (i.e. no sorting columns): http://datatables.net/usage/options#aaSorting

    Allan
  • MarcoMarco Posts: 2Questions: 0Answers: 0
    It works,
    thanks a lot for your help and your work on the datatables library.
This discussion has been closed.