PHPackages                             octoweb/yii2-grid-view-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. octoweb/yii2-grid-view-sort

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

octoweb/yii2-grid-view-sort
===========================

Sortable modification of standard Yii2 GridView widget

1.0.1(10y ago)0321MITPHP

Since Oct 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/OctoWeb/yii2-grid-view-sort)[ Packagist](https://packagist.org/packages/octoweb/yii2-grid-view-sort)[ RSS](/packages/octoweb-yii2-grid-view-sort/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

Sortable GridView Widget for Yii2
=================================

[](#sortable-gridview-widget-for-yii2)

Sortable modification of standard Yii2 GridView widget.

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

[](#installation)

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

- Either run

```
php composer.phar require --prefer-dist "octoweb/yii2-grid-view-sort" "*"

```

or add

```
"octoweb/yii2-grid-view-sort" : "*"
```

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

- Add to your database new `unsigned int` attribute, such `sortOrder`.
- Add new behavior in the AR model, for example:

```
use octoweb\gridsort\SortableGridBehavior;

public function behaviors()
{
    return [
        'sort' => [
            'class' => SortableGridBehavior::className(),
            'sortableAttribute' => 'sortOrder'
        ],
    ];
}
```

- Add action in the controller, for example:

```
use octoweb\gridsort\SortableGridAction;

public function actions()
{
    return [
        'sort' => [
            'class' => SortableGridAction::className(),
            'modelName' => Model::className(),
        ],
    ];
}
```

Usage
-----

[](#usage)

- Use SortableGridView as standard GridView with `sortableAction` option. You can also subscribe to the JS event 'sortableSuccess' generated widget after a successful sorting.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/228150b3aca57017482528c016c4d723a7ac8e4ed68816bcaeab4ecc91b2caeb?d=identicon)[OctoWeb](/maintainers/OctoWeb)

---

Top Contributors

[![OctoWeb](https://avatars.githubusercontent.com/u/15026802?v=4)](https://github.com/OctoWeb "OctoWeb (3 commits)")

---

Tags

gridsortableyii2gridview

### Embed Badge

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

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

###  Alternatives

[himiklab/yii2-sortable-grid-view-widget

Sortable modification of standard Yii2 GridView widget

79361.2k7](/packages/himiklab-yii2-sortable-grid-view-widget)[kotchuprik/yii2-sortable-widgets

Implementation Rubaxa/Sortable for Yii2. Sortable grid view inside.

64139.4k6](/packages/kotchuprik-yii2-sortable-widgets)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.8k59](/packages/skeeks-cms)[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29202.0k](/packages/richardfan1126-yii2-sortable-gridview)[himiklab/yii2-jqgrid-widget

A powerful ajax-enabled grid widget for Yii2

214.1k](/packages/himiklab-yii2-jqgrid-widget)

PHPackages © 2026

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