filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Default sort is not applying #279

Closed joshpalmeri closed 7 years ago

joshpalmeri commented 7 years ago

Default sort via the data attribute data-tablesaw-sortable-default-col is not applying to table data on both the demo page and in the wild.

http://filamentgroup.github.io/tablesaw/demo/sort.html http://www.stonybrook.edu/commcms/cce/schedule.html

screen shot 2017-03-06 at 12 27 45 pm screen shot 2017-03-06 at 12 27 47 pm

zachleat commented 7 years ago

This is a good point. The demo is wrong there.

I should note that the sort does not run on initialization and that’s on purpose. We want the server rendered markup to be sorted, so that we don’t have to do anything.