tablesort
tablesort copied to clipboard
data-sort-order attr no longer supported
At some point since commit 036e2f9 back on December 10, 2015, the support for data-sort-order on a
Downloading the source as of commit 036e2f9 allows <th data-sort-order="asc">...</th>
, for example, to a click on that header to override a global option sort order of "descending".
Can this please be restored?
Any update on that?
Gentle bump
just bumped into this as well. Made a tiny pull request #184
From the sources, it seems that this attribute has been superseded by aria-sort="[ascending|descending]"
. But due to a bug at initialization, this attribute is reversed... So if you want to have a column sorted in the descending order by default, for the time being you must do: <th data-sort-default aria-sort="ascending">
.