Sort numeric + html tags

Sort numeric + html tags

abaddonabaddon Posts: 6Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
Hi,

I have few questions about the sorting option in dataTables.

So, all my first column is something like that :
[code]


2012

[/code]

So, I would like to sort this column numiricaly but when I do this, that does not sort it.

[code]
.dataTable(
{
"bSort":true,
"aoColumnDefs": [
{ "sType": "numeric", "aTargets": [ 0 ] }
]
})
[/code]

I think it might be caused by the html tags and I would like to know if someone has an idea of how I could achieve this.
This discussion has been closed.