EloquentStudio / StreamTable.js

StreamTable.js streams data for tables in the background, updates and renders them using templating frameworks like Mustache.js, HandleBars.js
http://eloquentstudio.github.io/StreamTable.js/stream.html
MIT License
385 stars 77 forks source link

sorting on numeric columns throwing an error #23

Closed gswartz777 closed 9 years ago

gswartz777 commented 9 years ago

I have three numeric columns. 2 of them are simple integers and the third is currency. If I click on any of those column headers it does not sort but throws the following error.

Uncaught TypeError: t[e][n].toLowerCase is not a function

Is sorting on numbers supposed to work? I'm using the latest version of the script. Thanks.

gswartz777 commented 9 years ago

Nevermind. After digging into the code a bit I found where I needed to specify the type after the direction - such as data-sort="ColumnName:asc:number"