PHPackages                             codeclipse/sortable-behavior-bundle - 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. [Admin Panels](/categories/admin)
4. /
5. codeclipse/sortable-behavior-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

codeclipse/sortable-behavior-bundle
===================================

Provides a way to sort your admin listing

v2.0(3y ago)0194MITPHPPHP &gt;=8.0

Since Nov 6Pushed 3y agoCompare

[ Source](https://github.com/codeclipse/sortable-behavior-bundle)[ Packagist](https://packagist.org/packages/codeclipse/sortable-behavior-bundle)[ Docs](https://github.com/codeclipse/pixSortableBehaviorBundle)[ RSS](/packages/codeclipse-sortable-behavior-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (13)Used By (0)

Codeclipse - SortableBehaviorBundle
===================================

[](#codeclipse---sortablebehaviorbundle)

This package is a fork of

### SonataAdminBundle implementation

[](#sonataadminbundle-implementation)

The SonataAdminBundle provides a cookbook article here :

[https://github.com/sonata-project/SonataAdminBundle/blob/4.x/docs/cookbook/recipe\_sortable\_listing.rst](https://github.com/sonata-project/SonataAdminBundle/blob/4.x/docs/cookbook/recipe_sortable_listing.rst)

### Configuration

[](#configuration)

By default, this extension works with Doctrine ORM, but you can choose to use Doctrine MongoDB by defining the driver configuration :

```
# config/packages/codeclipse_sortable_behavior.yaml
codeclipse_sortable_behavior:
    db_driver: mongodb # default value : orm
    position_field:
        default: sort #default value : position
        entities:
            AppBundle\Entity\Foobar: order
            AppBundle\Entity\Baz: rang
    sortable_groups:
        entities:
            AppBundle\Entity\Baz: [ group ]

```

#### Use a draggable list instead of up/down buttons

[](#use-a-draggable-list-instead-of-updown-buttons)

In order to use a draggable list instead of up/down buttons, change the template in the `move` action to `@CodeclipseSortableBehavior/Default/_sort_drag_drop.html.twig`.

```
