sorted incorrectly

sorted incorrectly

hans99084hans99084 Posts: 6Questions: 0Answers: 0
edited April 2013 in General
http://s24.postimg.org/7ju1so3u9/screen_003.jpg

Whether the numbers are formated (12.345.678) or not (12345678), DataTables sort them incorrectly.
The alphabetical order is ok.

Thank you, Allan.

Replies

  • hans99084hans99084 Posts: 6Questions: 0Answers: 0
    Any ideas?
  • hans99084hans99084 Posts: 6Questions: 0Answers: 0
    ?
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Link to a test case please: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • hans99084hans99084 Posts: 6Questions: 0Answers: 0
    Hi Allan,

    I think I found the problem, I've got divs inside the td tags:
    http://live.datatables.net/atuqaj/6/edit

    The solution might be to remove the divs:
    http://live.datatables.net/atuqaj/8/edit
    Is there any function to use the children DOM element to sort the column?

    Thanks and have a nice weekend!
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Try this plug-in: http://datatables.net/plug-ins/sorting#numbers_html

    Allan
This discussion has been closed.