jennschiffer / timbles.js

a very simple jQuery plugin for tables, made by the person who literally did not invent tables
MIT License
38 stars 4 forks source link

Add support for inverted sort directions #39

Closed edelooff closed 7 years ago

edelooff commented 7 years ago

This PR adds support for a inverse-sort class on the column header which will cause the initial sort direction to be inverted. That is, upon first click the column will be sorted in descending order. Repeated sort events of the same column will continue as before, alternating ascending and descending.

Sorting by another column and then returning to the inverse-sort column will have it sort in descending order again. Each initial sort will be in the other direction from the current behavior.

jennschiffer commented 7 years ago

if you can update package.json to bump the version to 1.1.4, it will be ready for merge and publishing to npm 💃

edelooff commented 7 years ago

There you go :+1: