PHPackages                             ameotoko/contao-dc-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. ameotoko/contao-dc-sortable

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

ameotoko/contao-dc-sortable
===========================

Contao 5 DataContainer driver with drag'n'drop sorting support

1.0.1(2y ago)141LGPL-3.0-or-laterPHPPHP ^8.1

Since Nov 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ameotoko/contao-dc-sortable)[ Packagist](https://packagist.org/packages/ameotoko/contao-dc-sortable)[ RSS](/packages/ameotoko-contao-dc-sortable/feed)WikiDiscussions main Synced 1mo ago

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

DC\_SortableTable
=================

[](#dc_sortabletable)

A DataContainer driver for [Contao 5 CMS](https://contao.org), that extends core `DC_Table` driver with custom "drag'n'drop" sorting capability.

Install
-------

[](#install)

```
composer require ameotoko/contao-dc-sortable
```

Use in your data container
--------------------------

[](#use-in-your-data-container)

This is a minimal DCA configuration to make it work:

```
// tl_custom.php
use Ameotoko\DCSortableBundle\DataContainer\DC_TableSortable;

$GLOBALS['TL_DCA']['tl_custom'] = [
    'config' => [
        'dataContainer' => DC_TableSortable::class, // enable the driver
    ],

    'list' => [
        'sorting' => [
            'mode' => DataContainer::MODE_SORTED, // this mode is required
            'flag' => DataContainer::SORT_ASC,
            'fields' => ['sorting'] // drag'n'drop table must be sorted by the "sorting" field
        ],

        'label' => [
            // Contao will force the first sorting field to appear as a column in backend list view.
            // You can prevent this using this setting (requires Contao 5.2.8 or later).
            'showFirstOrderBy' => false
        ],

        // add the drag handle
        'operations' => [..., 'drag' => [
            'icon' => 'drag.svg',
            'attributes' => 'class="drag-handle" aria-hidden="true"',
            'button_callback' => static function ($row, $href, $label, $title, $icon, $attributes) {
                return \Contao\Image::getHtml($icon, $label, $attributes);
            }
        ]]
    ],

    // add required fields
    'fields' => [
        'id' => [
            'sql' => ['type' => Types::INTEGER, 'unsigned' => true, 'autoincrement' => true],
            'search' => true
        ],
        'sorting' => [
            'sql' => ['type' => Types::INTEGER, 'unsigned' => true, 'default' => 0]
        ],
    ]
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~74 days

Total

2

Last Release

819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/208b5dfb55f98ebdaf585d99255032fa917dad25b25501154840f9c2862199ee?d=identicon)[ameotoko](/maintainers/ameotoko)

---

Top Contributors

[![ameotoko](https://avatars.githubusercontent.com/u/10257912?v=4)](https://github.com/ameotoko "ameotoko (10 commits)")

### Embed Badge

![Health badge](/badges/ameotoko-contao-dc-sortable/health.svg)

```
[![Health](https://phpackages.com/badges/ameotoko-contao-dc-sortable/health.svg)](https://phpackages.com/packages/ameotoko-contao-dc-sortable)
```

###  Alternatives

[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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