Sorting numbers problem (i.e. 12.25)?

Sorting numbers problem (i.e. 12.25)?

pawpropawpro Posts: 4Questions: 0Answers: 0
edited June 2010 in General
I have another problem with sorting. I looked around but I can only find solutions to sorting formatted numbers or with html. Why does the following not sort properly. The link leads to a screenshot
[code]
12.25
[/code]
http://www.saokihotel.com/sorting_prob.gif

Thank you

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Do you only have numeric data in the column? Any white space (or lack of numeric data in 1.6.x) will cause DataTables to treat it as a string. Is the edit icon HTML or a CSS image? If its' HTML then that would be the problem. There are various sorting plug-ins (such as hidden title numeric sorting) which can help with that: http://datatables.net/plug-ins/sorting

    Allan
This discussion has been closed.