PHPackages                             mattdanger/phalcon-table-sort - 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. mattdanger/phalcon-table-sort

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

mattdanger/phalcon-table-sort
=============================

Phalcon HTML table sort component

224.1k↓53.8%1PHP

Since Mar 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mattdanger/phalcon-table-sort)[ Packagist](https://packagist.org/packages/mattdanger/phalcon-table-sort)[ RSS](/packages/mattdanger-phalcon-table-sort/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phalcon Table Sort
==================

[](#phalcon-table-sort)

Phalcon HTML table sort component

Requirements
------------

[](#requirements)

- Phalcon v1.4.x

Installing
----------

[](#installing)

Install using Composer:

```
{
	"require": {
		"mattdanger/phalcon-table-sort": "dev-master"
	}
}
```

You'll also need to add each function to the Volt service:

```
$di->set('view', function () use ($config) {

  $view = new View();
  // ...
  $view->registerEngines(array(
    '.volt' => function ($view, $di) use ($config) {

      $volt = new VoltEngine($view, $di);

      $volt->getCompiler()->addFunction('sortLink', function ($resolvedArgs, $expArgs) {
        return 'TableSort\Sort::sortLink(' . $resolvedArgs . ')';
      });
      $volt->getCompiler()->addFunction('sortIcon', function ($resolvedArgs, $expArgs) {
        return 'TableSort\Sort::sortIcon(' . $resolvedArgs . ')';
      });
      // ...

      return $volt;
    },
    // ...
  ));

  return $view;

});
```

Using Helpers
-------------

[](#using-helpers)

Here's a list of what's included:

`sortLink($key, $default_sort = 'ASC')`

Return a formatted URI string with sort order

`sortIcon($key, $default = FALSE)`

Return a sort icon

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/609890?v=4)[Matt West](/maintainers/mattdanger)[@mattdanger](https://github.com/mattdanger)

---

Top Contributors

[![mattdanger](https://avatars.githubusercontent.com/u/609890?v=4)](https://github.com/mattdanger "mattdanger (6 commits)")

### Embed Badge

![Health badge](/badges/mattdanger-phalcon-table-sort/health.svg)

```
[![Health](https://phpackages.com/badges/mattdanger-phalcon-table-sort/health.svg)](https://phpackages.com/packages/mattdanger-phalcon-table-sort)
```

###  Alternatives

[shel/neos-hyphens

A plugin for Neos CMS which provides hyphens for the inline editor

20200.7k1](/packages/shel-neos-hyphens)

PHPackages © 2026

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