PHPackages                             davidyell/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. davidyell/sortable

AbandonedArchivedCakephp-plugin[Utility &amp; Helpers](/categories/utility)

davidyell/sortable
==================

A small component to implement sortable tables with id's in a Cake view. This allows you to easily attach sorting to any table.

0.1.5(11y ago)22712PHP

Since May 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/davidyell/CakePHP-Sortable)[ Packagist](https://packagist.org/packages/davidyell/sortable)[ RSS](/packages/davidyell-sortable/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

\#CakePHP-Sortable A small component to implement sortable tables with id's in a Cake view. This allows you to easily attach sorting to any table.

It includes the [jQuery StupidTable](https://github.com/joequery/Stupid-Table-Plugin) plugin to facilitate the sorting, and also a component to deal with the saving.

\##Installation Install this as you would any other plugin using `CakePlugin::load('Sortable');` unless you are already using `CakePlugin::loadAll()`.

You can also install the plugin from Packagist using Composer `composer require davidyell/sortable`

\##Requirements This makes use of the [NiceAdmin](https://github.com/davidyell/CakePHP-NiceAdmin) alert-box element.

\##Usage In your controller you will need to include it in your components array.

```
public $components = array(
    'Sortable.Sortable'
);
```

Also you'll want to include the field on the view in order to submit the updated ranks to the component.

```
