sort bug? (maybe i need just help)

sort bug? (maybe i need just help)

zeehzeeh Posts: 4Questions: 0Answers: 0
edited March 2012 in DataTables 1.9
Hi!

I have one problem/bug. If you look like her http://test.zeeh.no/alfasafe/utleie/lifter/sakselifter-inne/ and try to sort the first column, its not right sorted. Is there any way to fix it or maybe a setting?

Thanks for help!
Markus

Replies

  • allanallan Posts: 61,668Questions: 1Answers: 10,096 Site admin
    I assume you what it to sort numerically, despite the non-numeric data that is in the column? Have a look at this sorting plug-in which will do that: http://datatables.net/plug-ins/sorting#formatted_numbers

    Allan
  • zeehzeeh Posts: 4Questions: 0Answers: 0
    Hi Allen!

    Thanks for your answer. I tryed the plugin befor (and again) - it doesnt work. And i removed the "m" (http://test.zeeh.no/alfasafe/utleie/lifter/bomlifter-inne/) but it doesnt help. I changed the input from , to . - it doesnt help.

    If i write 05.48 - it works well, but not with 5.48. Maybe a bug?
  • allanallan Posts: 61,668Questions: 1Answers: 10,096 Site admin
    No - your data isn't being picked up a numeric because you have non numeric (i.e. ^0-9\.) data in the column. The formatting numbers plug-in will strip out everything but numeric data, allowing a numeric sort. Did you use sType to set the type for the column to use the plug-in?

    Allan
  • zeehzeeh Posts: 4Questions: 0Answers: 0
    edited March 2012
    Hi!

    I´m sorry, but if you look her http://test.zeeh.no/alfasafe/utleie/lifter/bomlifter-inne/ - its just nummeric data inside the first column. Or not? For me its just numbers.

    (the others one with a mixs of nummerics and non-nummerics works fine, but not the first column with is nummeric)
  • zeehzeeh Posts: 4Questions: 0Answers: 0
    I looks like i found the problem .... it was a local problem and not a but. Thanks for your help!
This discussion has been closed.