how can i disable sorting in jquery.dataTables.min.js

how can i disable sorting in jquery.dataTables.min.js

PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
edited August 2013 in DataTables 1.9
I am having problems making my datatables not reorder into a differnet order then i made it in, so i was wondering if you can help me?. The code is pasted into pastebin because the code is to long to post here, the link to paste bin is http://pastebin.com/F7kx6Dyn
hope you can help me, thanks in advanced

Replies

  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    If you want to have the table be unsorted, look at http://datatables.net/usage/features#bSort . Look at http://www.datatables.net/forums/discussion/1399/how-to-no-sort-by-default/p1 for some more tips.
  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    i cant find that code in that and not sure how to add it, im new to this
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    The link aaronw give for bSort shows how to disable sorting in the example code:

    [code]
    $('#example').dataTable( {
    "bSort": false
    } );
    [/code]

    Allan
  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    ik but i cant find the code on my website for it
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Where and how are you initialising DataTables?
  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    its in a template im using in you want i can link you to the site template
This discussion has been closed.