Skip to content

Commit

Permalink
Fix issue kylefox#45
Browse files Browse the repository at this point in the history
Memorize current sorted column when sorted by click.
  • Loading branch information
Purpleskill authored Jan 14, 2022
1 parent bbd1a68 commit f179ad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.tablesort.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
if (this.index !== th.index()) {
this.direction = 'asc';
this.index = th.index();
this.$th = th
}
else if (direction !== 'asc' && direction !== 'desc')
this.direction = this.direction === 'asc' ? 'desc' : 'asc';
Expand Down

0 comments on commit f179ad8

Please sign in to comment.