Numeric sorting with html not working.

Numeric sorting with html not working.

maxleistnermaxleistner Posts: 2Questions: 1Answers: 0

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

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    Answer ✓

    Looks like your data is not numeric but a string, ie, 5.000,00 Euro. You can use orthogonal data to remove the Euro string for the sort operation. Or there might be a sorting plugin that will work for you. Maybe the natural or any-number plugins will work.

    Kevin

  • maxleistnermaxleistner Posts: 2Questions: 1Answers: 0

    @kthorngren yes!!! The any-number plugin did the trick. Thanks a lot!

Sign In or Register to comment.