Trouble sorting on column with a hyperlink

Trouble sorting on column with a hyperlink

fireeyesfireeyes Posts: 1Questions: 0Answers: 0
edited June 2012 in TableTools
Hi All,

I'm a relatively new tabletools developer ... I'm having some trouble figuring out how to handle a sort on a column that includes a hyperlink. I've setup this little demo ... the one without the hyperlink sorts ok. Can anyone tell me where my error is?

[code]
// Using aoColumnDefs
$(document).ready(function() {
$('.reporttable').dataTable({
"iDisplayLength": 100,
"bStateSave": true,
"sDom": '<"toolbar">lTfrtip',
"sPaginationType": "full_numbers",
"aoColumnDefs": [
{ "sType": "html", "aTargets": ["fact"] },
{ "sType": "numeric", "aTargets": ["fact"] }
],
"oTableTools": {
"sSwfPath": "{% media_url 'swf/copy_cvs_xls_pdf.swf' %}",
"aButtons": [
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [
{"sExtends": "csv", "sFieldBoundary": ''},
"pdf" ]
}
]
}
});
} );



[/code]

[code]

12W12


9


83


58


1


11






12W12


2.23


4.34355


656.78


66.78


23.3


[/code]

http://live.datatables.net/emebaj
This discussion has been closed.