PHPackages                             greshnik/yii2-grid-sort-column - 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. greshnik/yii2-grid-sort-column

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

greshnik/yii2-grid-sort-column
==============================

Bootstrap Grid Sort Column Widget for Yii2

1.0.9(10y ago)12431BSD-3-ClausePHP

Since Dec 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/greshnik/yii2-grid-sort-column)[ Packagist](https://packagist.org/packages/greshnik/yii2-grid-sort-column)[ RSS](/packages/greshnik-yii2-grid-sort-column/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

Bootstrap Grid Sort Column Widget for Yii2
==========================================

[](#bootstrap-grid-sort-column-widget-for-yii2)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require greshnik/yii2-grid-sort-column "*"

```

or add

```
"greshnik/yii2-grid-sort-column" : "*"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

***Example***

```

```

***Example add sort action in controller***

```
public function actions()
{
    return [
        'swap' => [
            'class' => 'app\gridSortColumn\Swap',
            'model' => new Mark,
            'attribute' => 'sortAttribute'
        ]
    ];
}

```

***Example add behavior in model***

```
public function behaviors()
{
    return [
        'sort' => [
            'class' => 'app\gridSortColumn\SortBehavior',
            'attribute' => 'sort'
        ]
    ];
}

```

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

10

Last Release

3858d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22409796?v=4)[greshnik](/maintainers/greshnik)[@Greshnik](https://github.com/Greshnik)

---

Top Contributors

[![vfrbgt](https://avatars.githubusercontent.com/u/356574?v=4)](https://github.com/vfrbgt "vfrbgt (28 commits)")

---

Tags

yii2extensionwidgetyiiyii 2

### Embed Badge

![Health badge](/badges/greshnik-yii2-grid-sort-column/health.svg)

```
[![Health](https://phpackages.com/badges/greshnik-yii2-grid-sort-column/health.svg)](https://phpackages.com/packages/greshnik-yii2-grid-sort-column)
```

PHPackages © 2026

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