Numeric sorting with html not working.
Numeric sorting with html not working.
![maxleistner](https://secure.gravatar.com/avatar/2fb3394f9c81837fb79232224d1659d0/?default=https%3A%2F%2Fvanillicon.com%2F2fb3394f9c81837fb79232224d1659d0_200.png&rating=g&size=120)
I am trying to sort this table values by correct order but no matter which option i take it does not work correctly. I tried each option here: https://datatables.net/reference/option/columns.type#Examples
any ideas Thank!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Looks like your data is not numeric but a string, ie,
5.000,00 Euro
. You can use orthogonal data to remove theEuro
string for thesort
operation. Or there might be a sorting plugin that will work for you. Maybe the natural or any-number plugins will work.Kevin
@kthorngren yes!!! The any-number plugin did the trick. Thanks a lot!