joequery/Stupid-Table-Plugin

Sorting on metadata values rather than the actual TD content

Closed this issue · 1 comments

Here's my current situation: I have a table row where I display in each cell a numeric value represented as a graphical "bar" (bar chart-like) - a div with a variable width. I should be able to make this row sortable data based on the numeric value in a data- attribute : <td data-value="86">...</td>, not the actual content of the td element. It would be a useful feature for this "stupid" plugin to take this use case into account (granted, my example may not be the most frequent).