PHPackages                             christianbach/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. christianbach/tablesorter

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

christianbach/tablesorter
=========================

1.0.1(9y ago)014.2k—0%JavaScript

Since Sep 2Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

tablesorter
===========

[](#tablesorter)

\###Flexible client-side table sorting ####Getting started

To use the tablesorter plugin, include the jQuery library and the tablesorter plugin inside the head-tag of your HTML document:

```

```

Tablesorter works on all standard HTML tables. You must include THEAD and TBODY tags:

```

    Last Name
    First Name
    Email
    Due
    Web Site

    Smith
    John
    jsmith@gmail.com
    $50.00
    http://www.jsmith.com

    Bach
    Frank
    fbach@yahoo.com
    $50.00
    http://www.frank.com

    Doe
    Jason
    jdoe@hotmail.com
    $100.00
    http://www.jdoe.com

    Conway
    Tim
    tconway@earthlink.net
    $50.00
    http://www.timconway.com

```

Start by telling tablesorter to sort your table when the document is loaded:

```
$(document).ready(function()
    {
        $("#myTable").tablesorter();
    }
);
```

Click on the headers and you'll see that your table is now sortable! You can also pass in configuration options when you initialize the table. This tells tablesorter to sort on the first and second column in ascending order.

```
$(document).ready(function()
    {
        $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
    }
);
```

For DateTime columns you can specify your format, like this:

```
$(document).ready(function()
    {
        $("#myTable").tablesorter( {dateFormat: 'pt'} );
    }
);
```

The available ones (currently) are: us, pt and uk. (for pt you can use 'dd/MM/yyyy hh:mm:ss')

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~0 days

Total

2

Last Release

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/341a8ef8a06866ad99b1bbcf0216fd8e331b076b1690a7d992c386192674b787?d=identicon)[akiyatkin](/maintainers/akiyatkin)

---

Top Contributors

[![christianbach](https://avatars.githubusercontent.com/u/7323932?v=4)](https://github.com/christianbach "christianbach (14 commits)")[![leosilvadev](https://avatars.githubusercontent.com/u/5465808?v=4)](https://github.com/leosilvadev "leosilvadev (4 commits)")[![iajrz](https://avatars.githubusercontent.com/u/4443604?v=4)](https://github.com/iajrz "iajrz (1 commits)")[![iustin](https://avatars.githubusercontent.com/u/550045?v=4)](https://github.com/iustin "iustin (1 commits)")[![jperkelens](https://avatars.githubusercontent.com/u/176702?v=4)](https://github.com/jperkelens "jperkelens (1 commits)")[![nubis-icp](https://avatars.githubusercontent.com/u/6863418?v=4)](https://github.com/nubis-icp "nubis-icp (1 commits)")[![aran112000](https://avatars.githubusercontent.com/u/3313791?v=4)](https://github.com/aran112000 "aran112000 (1 commits)")[![tyxla](https://avatars.githubusercontent.com/u/8436925?v=4)](https://github.com/tyxla "tyxla (1 commits)")[![bamyers99](https://avatars.githubusercontent.com/u/4949828?v=4)](https://github.com/bamyers99 "bamyers99 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)

PHPackages © 2026

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