PHPackages                             mottie/tablesorter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mottie/tablesorter

ActiveComponent[Utility &amp; Helpers](/categories/utility)

mottie/tablesorter
==================

tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.

v2.32.0(1y ago)2.6k223.5k—2%751[252 issues](https://github.com/Mottie/tablesorter/issues)[10 PRs](https://github.com/Mottie/tablesorter/pulls)(MIT OR GPL-2.0)JavaScript

Since Apr 2Pushed 1y ago111 watchersCompare

[ Source](https://github.com/Mottie/tablesorter)[ Packagist](https://packagist.org/packages/mottie/tablesorter)[ Docs](https://mottie.github.io/tablesorter/)[ RSS](/packages/mottie-tablesorter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (31)Used By (0)

tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell. This forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.

[![NPM Version](https://camo.githubusercontent.com/7cea884982855e758acc922445628556516a2a5aa43cedbc9b32010753dd7d6c/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f7461626c65736f727465722e737667)](https://npmjs.org/package/tablesorter) [![devDependency Status](https://camo.githubusercontent.com/847c1712f28a17091120cb12d10547f4f633806018ffab2c0ce5fc2e940443fb/68747470733a2f2f696d672e736869656c64732e696f2f64617669642f6465762f4d6f747469652f7461626c65736f727465722e737667)](https://david-dm.org/Mottie/tablesorter?type=dev) [![zenhub-image](https://camo.githubusercontent.com/a50935b2372fcd33d0d8d2f83f04eeafe2e0581436998b50bafbab2e67fa0414/68747470733a2f2f63646e2e7261776769742e636f6d2f4d6f747469652f7461626c65736f727465722f6d61737465722f646f63732f696d672f7a656e6875622d62616467652e737667)](https://zenhub.io)

### Notice!

[](#notice)

- Because of the change to the internal cache, the tablesorter v2.16+ core, filter widget and pager (both plugin &amp; widget) will only work with the same version or newer files.

### [Documentation](https://mottie.github.io/tablesorter/docs/)

[](#documentation)

- See the [full documentation](https://mottie.github.io/tablesorter/docs/).
- All of the original documentation has been included.
- Information from my blog post on [undocumented options](https://wowmotty.blogspot.com/2011/06/jquery-tablesorter-missing-docs.html) and lots of new demos have also been included.
- Change log moved from included text file into the [wiki documentation](https://github.com/Mottie/tablesorter/wiki/Changes).

### Questions?

[](#questions)

[![irc-image](https://camo.githubusercontent.com/fc7d2bb574f63f5ba44a0606258b006a970c30c03138a4d61904f2f8c03c6435/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6972632d2532337461626c65736f727465722d79656c6c6f77677265656e2e737667)](https://kiwiirc.com/client/irc.freenode.net#tablesorter) [![slack-image](https://camo.githubusercontent.com/0fca11007475b50dcbbd01a5bf482e9771a9b41630ba8a86377423e097e2a53f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d6a6f696e253230636861742d79656c6c6f77677265656e2e737667)](https://join.slack.com/t/tablesorter/shared_invite/enQtNDc2NTczODg0NjkzLWRmYzE2NjIzNjM2ZWE1NzkyNzFkNjM4NjY0OTIyOTM3NDRmNWRhMjgxMTk5MjFhNzM3NWIzMWU1ZTc1NTZlOGE) [![stackoverflow-image](https://camo.githubusercontent.com/5c11b0b933c05164505d613c00a54fb03c5c9df63a7ab659c04472ac71b8516e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461636b6f766572666c6f772d7461626c65736f727465722d626c75652e737667)](http://stackoverflow.com/questions/tagged/tablesorter)

- Check the [FAQ](https://github.com/Mottie/tablesorter/wiki/FAQ) page.
- Search the [main documentation](https://mottie.github.io/tablesorter/docs/) (click the menu button in the upper left corner).
- Search the [issues](https://github.com/Mottie/tablesorter/issues) to see if the question or problem has been brought up before, and hopefully resolved.
- If someone is available, ask your question in the `#tablesorter` IRC channel at freenode.net.
- Ask your question at [Stackoverflow](https://stackoverflow.com/questions/tagged/tablesorter) using a tablesorter tag.
- Please don't open a [new issue](https://github.com/Mottie/tablesorter/issues) unless it really is an issue with the plugin, or a feature request. Thanks!

### Demos

[](#demos)

- [Basic alpha-numeric sort Demo](https://mottie.github.io/tablesorter/).
- Links to demo pages can be found within the main [documentation](https://mottie.github.io/tablesorter/docs/).
- More demos &amp; playgrounds - updated in the [wiki pages](https://github.com/Mottie/tablesorter/wiki).

### Features

[](#features)

- Multi-column alphanumeric sorting and filtering.
- Multi-tbody sorting - see the [options](https://mottie.github.io/tablesorter/docs/index.html#options) table on the main document page.
- Supports [Bootstrap v2-4](https://mottie.github.io/tablesorter/docs/example-option-theme-bootstrap-v3.html).
- Parsers for sorting text, alphanumeric text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats) &amp; time. [Add your own easily](https://mottie.github.io/tablesorter/docs/example-parsers.html).
- Inline editing - see [demo](https://mottie.github.io/tablesorter/docs/example-widget-editable.html).
- Support for ROWSPAN and COLSPAN on TH elements.
- Support secondary "hidden" sorting (e.g., maintain alphabetical sort when sorting on other criteria).
- Extensibility via [widget system](https://mottie.github.io/tablesorter/docs/example-widgets.html).
- Cross-browser: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+, Chrome 5.0+.
- Small code size, starting at 25K minified.
- Works with jQuery 1.2.6+ (jQuery 1.4.1+ needed with some widgets).
- Works with jQuery 1.9+ (`$.browser.msie` was removed; needed in the original version).

### Licensing

[](#licensing)

- Copyright (c) 2007 Christian Bach.
- The original version can be found at , or on [GitHub](https://github.com/christianbach/tablesorter).
- Dual licensed under the [MIT](https://opensource.org/licenses/mit-license.php) or [GPLv2](https://www.gnu.org/licenses/gpl-2.0.html) licenses (pick one).

### Download

[](#download)

- Get all files: [zip](https://github.com/Mottie/tablesorter/archive/master.zip) or [tar.gz](https://github.com/Mottie/tablesorter/archive/master.tar.gz).
- Use [bower](https://bower.io/): `bower install jquery.tablesorter`.
- Use [node.js](https://nodejs.org/): `npm install tablesorter`.
- CDNJS:
- jsDelivr:

### Related Projects

[](#related-projects)

- [Plugin for Rails](https://github.com/themilkman/jquery-tablesorter-rails). Maintained by [themilkman](https://github.com/themilkman).
- [UserFrosting](https://www.userfrosting.com) (A secure, modern user management system for PHP that uses tablesorter) by [@alexweissman](https://github.com/alexweissman).
- [Grav CMS](https://getgrav.org/): `bin/gpm install tablesorter` ([ref](https://github.com/Perlkonig/grav-plugin-tablesorter)).
- [tablesorter-pagercontrols](https://github.com/isg-software/tablesorter-pagercontrols) – programmatically adds pager controls below a table and applies the pager add-on for large HTML tables by [isg-software](https://github.com/isg-software).

### Contributing

[](#contributing)

If you would like to contribute, please...

1. Fork.
2. Make changes in a branch &amp; add unit tests.
3. Run `grunt test` (if qunit fails, run it again - it's fickle).
4. Create a pull request.

### Special Thanks

[](#special-thanks)

- Big shout-out to [Nick Craver](https://github.com/NickCraver) for getting rid of the `eval()` function that was previously needed for multi-column sorting.
- Big thanks to [thezoggy](https://github.com/thezoggy) for helping with code, themes and providing valuable feedback.
- Big thanks to [ThsSin-](https://github.com/TheSin-) for taking over for a while and also providing valuable feedback.
- Thanks to [prijutme4ty](https://github.com/prijutme4ty) for numerous contributions!
- Also extra thanks to [christhomas](https://github.com/christhomas) and [Lynesth](https://github.com/Lynesth) for help with code.
- And, of course thanks to everyone else that has [contributed](https://github.com/Mottie/tablesorter/blob/master/AUTHORS), and continues to contribute through pull requests and open issues to this forked project!

### Recent Changes

[](#recent-changes)

View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/Changes).

#### Version 2.32.0 (2024-08-13)

[](#version-2320-2024-08-13)

- Core:
    - Remove ie8 support (Grunt limitation)
    - Initialize headers as `null`
- Grouping: Fix self-closing icon tags to support jQuery 3.5+
- Parser-input-select: Don't use updateCell if cell has `parser-false` class

#### Version 2.31.3 (2020-03-03)

[](#version-2313-2020-03-03)

- Core:
    - Cache parsed value in colspan. Fixes [issue #1708](https://github.com/Mottie/tablesorter/issues/1708).
- AlignChar:
    - Tweak demo css. See [isssue #1713](https://github.com/Mottie/tablesorter/issues/1713).
- Pager:
    - Restore first row in cacheIndex. Fixes issues [\#1714](https://github.com/Mottie/tablesorter/issues/1714) &amp; [\#1710](https://github.com/Mottie/tablesorter/issues/1710).
- Docs:
    - Update to jQuery 3.4.1 &amp; migrate 3.1.0.
    - Update to Bootstrap 4.4.1.
    - CSS cleanup - code font size was off.

#### Version 2.31.2 (2019-12-01)

[](#version-2312-2019-12-01)

- Column selector:
    - Fix scroller widget compatibility. See [issue #1682](https://github.com/Mottie/tablesorter/issues/1682).
- Filter:
    - Update select2 regexp. See [issue #1497](https://github.com/Mottie/tablesorter/issues/1497). Fixed in [PR #1677](https://github.com/Mottie/tablesorter/pull/1677); thanks [@cwisdo](https://github.com/cwisdo)!
    - Prevent search on enter if filters are unchanged. See [issue #1631](https://github.com/Mottie/tablesorter/issues/1631). Fixed in [PR #1642](https://github.com/Mottie/tablesorter/pull/1642); thanks [@larsbonczek](https://github.com/larsbonczek)!
- Math
    - Add math ignore to cells; it was documented, but not added previously. See [issue #1526](https://github.com/Mottie/tablesorter/issues/1526).
- Docs:
    - Various fixes.
    - Updated trigger sort page. See [issue #1641](https://github.com/Mottie/tablesorter/issues/1641).
    - Remove invalid widget option. See [issue #1581](https://github.com/Mottie/tablesorter/issues/1581).

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity63

Solid adoption and visibility

Community38

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Recently: every ~544 days

Total

30

Last Release

643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7be29f17466d5bfadbf0c1c2703a4cba3b8cadf664fc273989e18b616fc0076?d=identicon)[Mottie](/maintainers/Mottie)

---

Top Contributors

[![Mottie](https://avatars.githubusercontent.com/u/136959?v=4)](https://github.com/Mottie "Mottie (2277 commits)")[![TheSin-](https://avatars.githubusercontent.com/u/1868661?v=4)](https://github.com/TheSin- "TheSin- (45 commits)")[![VorontsovIE](https://avatars.githubusercontent.com/u/814984?v=4)](https://github.com/VorontsovIE "VorontsovIE (8 commits)")[![camallen](https://avatars.githubusercontent.com/u/295329?v=4)](https://github.com/camallen "camallen (7 commits)")[![Herst](https://avatars.githubusercontent.com/u/1042176?v=4)](https://github.com/Herst "Herst (6 commits)")[![themilkman](https://avatars.githubusercontent.com/u/1582492?v=4)](https://github.com/themilkman "themilkman (4 commits)")[![larsbonczek](https://avatars.githubusercontent.com/u/44197504?v=4)](https://github.com/larsbonczek "larsbonczek (4 commits)")[![OmgImAlexis](https://avatars.githubusercontent.com/u/6525926?v=4)](https://github.com/OmgImAlexis "OmgImAlexis (3 commits)")[![eire1130](https://avatars.githubusercontent.com/u/1371080?v=4)](https://github.com/eire1130 "eire1130 (3 commits)")[![rozwell](https://avatars.githubusercontent.com/u/695221?v=4)](https://github.com/rozwell "rozwell (3 commits)")[![dandv](https://avatars.githubusercontent.com/u/33569?v=4)](https://github.com/dandv "dandv (3 commits)")[![mwiencek](https://avatars.githubusercontent.com/u/1056556?v=4)](https://github.com/mwiencek "mwiencek (3 commits)")[![LvLynx](https://avatars.githubusercontent.com/u/9196835?v=4)](https://github.com/LvLynx "LvLynx (2 commits)")[![ced-b](https://avatars.githubusercontent.com/u/5283269?v=4)](https://github.com/ced-b "ced-b (2 commits)")[![christhomas](https://avatars.githubusercontent.com/u/827996?v=4)](https://github.com/christhomas "christhomas (2 commits)")[![Craga89](https://avatars.githubusercontent.com/u/187963?v=4)](https://github.com/Craga89 "Craga89 (2 commits)")[![Frennetix](https://avatars.githubusercontent.com/u/12666188?v=4)](https://github.com/Frennetix "Frennetix (2 commits)")[![johnjameswhitman](https://avatars.githubusercontent.com/u/1639083?v=4)](https://github.com/johnjameswhitman "johnjameswhitman (2 commits)")[![JzTurrini](https://avatars.githubusercontent.com/u/5420317?v=4)](https://github.com/JzTurrini "JzTurrini (2 commits)")[![lbodtke](https://avatars.githubusercontent.com/u/14858237?v=4)](https://github.com/lbodtke "lbodtke (2 commits)")

---

Tags

jquerypagersortingtablesorternaturalsorttablesortingjquery-pluginalphanumeric

### Embed Badge

![Health badge](/badges/mottie-tablesorter/health.svg)

```
[![Health](https://phpackages.com/badges/mottie-tablesorter/health.svg)](https://phpackages.com/packages/mottie-tablesorter)
```

###  Alternatives

[fullcalendar/fullcalendar

Full-sized drag &amp; drop event calendar

20.4k373.3k4](/packages/fullcalendar-fullcalendar)[kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6485.6M21](/packages/kyslik-column-sortable)[icecave/parity

A customizable deep comparison library.

516.8M10](/packages/icecave-parity)[benpickles/peity

Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini `&lt;svg&gt;` pie, donut, line or bar chart.

4.2k2.8k](/packages/benpickles-peity)[fullcalendar/fullcalendar-scheduler

A premium add-on to FullCalendar for displaying events and resources

78514.7k](/packages/fullcalendar-fullcalendar-scheduler)[tuck/sort

Syntactic sugar for PHP's sorting

11547.3k](/packages/tuck-sort)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
