Holt59 / datatable

Javascript Plugin for data tables creation
http://holt59.github.io/datatable/
MIT License
107 stars 42 forks source link

sorting numbers #4

Closed arnobase closed 10 years ago

arnobase commented 10 years ago

numbers are sorted as strings, and it's necessary to add heading zero to make numbers with the same length to have the sort work as expected.

Holt59 commented 10 years ago

Are you getting data from an already existing HTML table? (Without sending data to the constructor)

arnobase commented 10 years ago

that's it, just with an existing html table

Holt59 commented 10 years ago

Should works with the new version (will convert float and integer to float if all value in the column can be converted). Thx for your feedback, let me know if does not work as you would!

Holt59 commented 10 years ago

Without hearing from you, I close the issue. If the problem is still here, contact me via email.