Ascending or Descending for first th tag

Ascending or Descending for first th tag

citizenerasedcitizenerased Posts: 2Questions: 0Answers: 0
edited November 2010 in TableTools
Hi guys.

I'm new in DataTables and I don't know very well using DataTables. In the first th, (in the example, this th's label is Rendering Engine) entries ordering ascending. I wanna order them descending. How I make this? Thanks for your supports.

Replies

  • mstrandmstrand Posts: 24Questions: 0Answers: 0
    See the "aaSorting" initialization parameter as shown in this example:

    http://www.datatables.net/examples/basic_init/table_sorting.html
  • citizenerasedcitizenerased Posts: 2Questions: 0Answers: 0
    I can't make it. I wanna sort first column. (Here it's a image: http://i52.tinypic.com/106d6jr.png)

    My first column is already sorting ascending. I wanna make it descending. How can I do this?
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    As mstrand noted, use aaSorting: http://datatables.net/usage/options#aaSorting

    Allan
This discussion has been closed.