RhoInc / Webcharts

Reusable, flexible, interactive charts with JavaScript
MIT License
34 stars 6 forks source link

Table: Sort by integer for numeric values #123

Open rtbailey opened 6 years ago

rtbailey commented 6 years ago

On the gist, when sorting a numeric column, it appears to sort by treating the numbers as characters not integers:

image

samussiah commented 6 years ago

And maybe handle some common date types like %d%b%Y, %m/%d/%Y, %Y-%m-%d, etc.

jwildfire commented 6 years ago

Curious how this works in other libraries (like data tables).

I see 2 options to address this off the top of my head:

jwildfire commented 6 years ago

Also, Not a huge deal, but I'm tempted to remove the bug label here, since the current behavior is expected.