PHPackages                             inblank/yii2-sortable - 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. [Database &amp; ORM](/categories/database)
4. /
5. inblank/yii2-sortable

ActiveYii2-extension[Database &amp; ORM](/categories/database)

inblank/yii2-sortable
=====================

Extension for Yii2 to support sorting in ActiveRecord models

0.1.6(9y ago)075[2 issues](https://github.com/inblank/yii2-sortable/issues)MITPHP

Since Jun 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/inblank/yii2-sortable)[ Packagist](https://packagist.org/packages/inblank/yii2-sortable)[ Docs](https://github.com/inblank/yii2-sortable)[ RSS](/packages/inblank-yii2-sortable/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

Behavior for Yii2 to support sorting in ActiveRecord models
===========================================================

[](#behavior-for-yii2-to-support-sorting-in-activerecord-models)

[![Build Status](https://camo.githubusercontent.com/b18f3e1a743354e7ad231f293b60a7e10b8d02d961a01ba1451ca6024955f144/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e626c616e6b2f796969322d736f727461626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/inblank/yii2-sortable)[![Packagist Version](https://camo.githubusercontent.com/011589f0902630deabef4f8734cab3037acd2bdcac6d67d6bb10dfbbdfe497b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e626c616e6b2f796969322d736f727461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/inblank/yii2-sortable)[![Code Coverage](https://camo.githubusercontent.com/730fc24850993fc09eda6fc15799abb7a31c72b1f6aff81a27ee90cc973c84de/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e626c616e6b2f796969322d736f727461626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/inblank/yii2-sortable/?branch=master)[![Code Quality](https://camo.githubusercontent.com/37423ea8fd2147f46b90bdd6e80fe281eb25ac2ac0b82738f8a49f009b39ac76/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e626c616e6b2f796969322d736f727461626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/inblank/yii2-sortable/?branch=master)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/inblank/yii2-sortable/master/LICENSE)

> **[Русская версия](https://github.com/inblank/yii2-sortable/blob/master/README_RU.md)** этого документа доступна [здесь](https://github.com/inblank/yii2-sortable/blob/master/README_RU.md).

Behavior `yii2-sortable` for Yii2 allows manage sorting in ActiveRecord models.

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

[](#installation)

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

Navigate to the project folder and run the console command:

```
$ composer require inblank/yii2-sortable
```

or add:

```
"inblank/yii2-sortable": "*"
```

to the `require` section of your `composer.json` file.

Configuring
-----------

[](#configuring)

Usage
-----

[](#usage)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~52 days

Recently: every ~72 days

Total

7

Last Release

3360d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/433803cfd4ffaa6ed53792ce7596b33ebaf36b9fe111e4724c621cdb3f6dc288?d=identicon)[inblank](/maintainers/inblank)

---

Top Contributors

[![inblank](https://avatars.githubusercontent.com/u/693804?v=4)](https://github.com/inblank "inblank (11 commits)")

---

Tags

sortablesortyii2order

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/inblank-yii2-sortable/health.svg)

```
[![Health](https://phpackages.com/badges/inblank-yii2-sortable/health.svg)](https://phpackages.com/packages/inblank-yii2-sortable)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[rutorika/sortable

Adds sortable behavior and ordering to Laravel Eloquent models. Grouping and many to many supported.

2891.0M16](/packages/rutorika-sortable)[sjaakp/yii2-sortable-behavior

Sort ActiveRecords and related records in Yii2.

36162.8k](/packages/sjaakp-yii2-sortable-behavior)[jedrzej/pimpable

Laravel 4/5/6 package that allows to dynamically filter, sort and eager load relations for your models using request parameters

104184.9k1](/packages/jedrzej-pimpable)[jedrzej/sortable

Sortable trait for Laravel's Eloquent models - sort your models using request parameters

52272.9k1](/packages/jedrzej-sortable)[nevadskiy/laravel-position

Arrange Laravel models in a given order.

2685.5k](/packages/nevadskiy-laravel-position)

PHPackages © 2026

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