joequery/Stupid-Table-Plugin

Null or blank float values

Closed this issue · 1 comments

tagr commented

So this was from an SO post http://stackoverflow.com/questions/26107198/null-float-values-in-stupid-table-jquery-plugin/26107580#26107580

Basically, a column with nullable float values did not seem to sort correctly. We came up with modifying the "float" function a bit:

    return parseFloat(a)||0 - parseFloat(b)||0; 

Just wanted to circle the wagon. Neat plugin!

Hey there. Thanks for taking the time to let me know. If you look through #106, we decided that the plugin should not attempt to provide defaults for NaN, null etc. If you have an opinion on the matter, you're welcome to contribute to the thread!