bug on initial sort when using title-numeric plug-in

bug on initial sort when using title-numeric plug-in

thedoctorthedoctor Posts: 2Questions: 0Answers: 0
edited February 2011 in Bug reports
Hello,

I have come across a bug (I think) when using the "Hidden title numeric sorting" plug-in from http://www.datatables.net/plug-ins/sorting

If I use that plug-in and also try to apply a default sort, either from the state saving or aaSorting, I receive this Javascript error:
[code]Error: q[d + ("-" + k[f][1])] is not a function
Source File: jquery.dataTables.min.js
Line: 81[/code]
My work around was to apply the default sort after table initialization such as:
[code]var oTable = $('#myTable').dataTable();
oTable.fnSort( [ [1,'desc'] ] );[/code]
However, I'm now in a position where I want to use the state saving feature, which also causes the same error on page load.

Thanks

Replies

  • thedoctorthedoctor Posts: 2Questions: 0Answers: 0
    Solved. Silly mistake, need to make sure the plug-in is defined before table initialization (duh).
This discussion has been closed.