Numerical sorting issue
Numerical sorting issue
Cereal_killer
Posts: 2Questions: 0Answers: 0
Hi to all,
i've got a numerical sorting problem on this page:
http://www.idealcasa-immobiliare.it/temp/index.php/alloggi
Searching the forum, i understood that the cause must be the presence of a non-numerical character; but in this case i can't find one...
The column that is not correctly sorted is the last one: "Prezzo"...
Could someone help with this?
Thanks
i've got a numerical sorting problem on this page:
http://www.idealcasa-immobiliare.it/temp/index.php/alloggi
Searching the forum, i understood that the cause must be the presence of a non-numerical character; but in this case i can't find one...
The column that is not correctly sorted is the last one: "Prezzo"...
Could someone help with this?
Thanks
This discussion has been closed.
Replies
You've got HTML in there, which is why it is being sorted as a string. Given that the extra markup doesn't actually do anything there, I'd suggest just removing it. Otherwise, you might want to use the HTML numeric sorting plug-in: http://datatables.net/plug-ins/sorting#numbers_html
Allan
Now i've got it! And it works... Thank you very much