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

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
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
This discussion has been closed.
Replies