<commit_before># Yii 2 Sortable

Sortable ActiveRecord for Yii 2 framework

[![Latest Stable Version](https://poser.pugx.org/arogachev/yii2-sortable/v/stable)](https://packagist.org/packages/arogachev/yii2-sortable)
[![Total Downloads](https://poser.pugx.org/arogachev/yii2-sortable/downloads)](https://packagist.org/packages/arogachev/yii2-sortable)
[![Latest Unstable Version](https://poser.pugx.org/arogachev/yii2-sortable/v/unstable)](https://packagist.org/packages/arogachev/yii2-sortable)
[![License](https://poser.pugx.org/arogachev/yii2-sortable/license)](https://packagist.org/packages/arogachev/yii2-sortable)

- [Installation](#installation)
- [Features](#features)
- [Behaviors types](#behaviors-types)
- [Preparing table structure](#preparing-table-structure)
- [Attaching behavior](#attaching-behavior)
- [Configuring behavior](#configuring-behavior)
- [Changing order of models inside sortable scope](#changing-order-of-models-inside-sortable-scope)
- [GUI for changing order](#gui-for-changing-order)
- [Custom GUI for changing order](#custom-gui-for-changing-order)

## Installation

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

Either run

```<commit_msg>Fixed #16: Improve brief description in README<commit_after># Yii 2 Sortable

This extension allows to manage order of ActiveRecord models via different behaviors.
Choose one to fit your needs.

[![Latest Stable Version](https://poser.pugx.org/arogachev/yii2-sortable/v/stable)](https://packagist.org/packages/arogachev/yii2-sortable)
[![Total Downloads](https://poser.pugx.org/arogachev/yii2-sortable/downloads)](https://packagist.org/packages/arogachev/yii2-sortable)
[![Latest Unstable Version](https://poser.pugx.org/arogachev/yii2-sortable/v/unstable)](https://packagist.org/packages/arogachev/yii2-sortable)
[![License](https://poser.pugx.org/arogachev/yii2-sortable/license)](https://packagist.org/packages/arogachev/yii2-sortable)

- [Installation](#installation)
- [Features](#features)
- [Behaviors types](#behaviors-types)
- [Preparing table structure](#preparing-table-structure)
- [Attaching behavior](#attaching-behavior)
- [Configuring behavior](#configuring-behavior)
- [Changing order of models inside sortable scope](#changing-order-of-models-inside-sortable-scope)
- [GUI for changing order](#gui-for-changing-order)
- [Custom GUI for changing order](#custom-gui-for-changing-order)

## Installation

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

Either run

```
{'fraction_non_alphanumeric': 0.15582391897156214, 'fraction_numerical': 0.008180755746007013, 'mean_word_length': 6.074380165289257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6900719', 'n_tokens_mistral': 905, 'n_tokens_neox': 854, 'n_words': 136}