jQuery plugin: Tablesorter 2.0 - Save Sort Widget

# tablesorter

## Save Sort Widget

### Flexible client-side table sorting

Back to documentation

NOTE!

- As of tablesorter version 2.9+, this widget can no longer be applied to versions of tablesorter prior to version 2.8.
- Sort one or more columns, then reload the page to see that this widget remembers the last table sort.
- Sort saving requires the new "$.tablesorter.storage()" function included with the "jquery.tablesorter.widgets.js" file (v2.1).
- Because this widget uses jQuery's `parseJson()` function, it requires jQuery version 1.4.1+.
- Added a `saveSortReset` method which only clears the stored information (v2.7.11).

# Demo

Account # | First Name | Last Name | Age | Total | Discount | Diff
--- | --- | --- | --- | --- | --- | ---
A43 | Peter | Parker | 28 | 9.99 | 20.3% | +3
A255 | John | Hood | 33 | 19.99 | 25.1% | -7
A33 | Clark | Kent | 18 | 15.89 | 44.2% | -15
A1 | Bruce | Almighty | 45 | 153.19 | 44% | +19
A102 | Bruce | Evans | 56 | 153.19 | 23% | +9

Rank | Rating | Title | Votes
--- | --- | --- | ---
1. | 9.2 | The Shawshank Redemption (1994) | 734,327
2. | 9.2 | The Godfather (1972) | 548,857
3. | 9.0 | The Godfather: Part II (1974) | 346,072
4. | 8.9 | Pulp Fiction (1994) | 577,426
5. | 8.9 | The Good, the Bad and the Ugly (1966) | 229,564

# Page Header

    <link rel="stylesheet" href="css/blue/style.css">
    <script src="js/jquery-latest.min.js"></script>
    <script src="js/jquery.tablesorter.min.js"></script>
    <script src="js/jquery.tablesorter.widgets.min.js"></script>

# Javascript

# HTML

Next up: Applying the sticky header widget ››