Sort numeric + html tags
Sort numeric + html tags
abaddon
Posts: 6Questions: 0Answers: 0
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.
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.