joequery/Stupid-Table-Plugin

Sort bt default

waister opened this issue · 7 comments

Sort with "data-sort-default" is not working.

Can you please provide code so we can replicate the issue?

<table>
...
<th data-sort="float" data-sort-default="desc">float</th>
...
</table>

<script>$("table").stupidtable();</script>

+1

issue title is misleading. it should be: setting default sort direction attribute has no effect

The default direction of the sort occurs. The attribute does not indicate that the table will initiate sorting upon page load. Whether that should be its own option would be a separate issue.

@joequery - yes, I addressed this in #180

This was implemented in #185 . thanks for the issue!