Numerical sorting issue

Numerical sorting issue

Cereal_killerCereal_killer Posts: 2Questions: 0Answers: 0
edited August 2012 in General
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

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    > 105000

    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
  • Cereal_killerCereal_killer Posts: 2Questions: 0Answers: 0
    edited August 2012
    Ok, thank you for answering...
    Now i've got it! And it works... Thank you very much
This discussion has been closed.