diff --git a/src/Kunstmaan/RedirectBundle/AdminList/RedirectAdminListConfigurator.php b/src/Kunstmaan/RedirectBundle/AdminList/RedirectAdminListConfigurator.php index 4375f5989d..4a7906c7ce 100644 --- a/src/Kunstmaan/RedirectBundle/AdminList/RedirectAdminListConfigurator.php +++ b/src/Kunstmaan/RedirectBundle/AdminList/RedirectAdminListConfigurator.php @@ -3,6 +3,7 @@ namespace Kunstmaan\RedirectBundle\AdminList; use Doctrine\ORM\EntityManager; +use Doctrine\ORM\QueryBuilder; use Kunstmaan\AdminBundle\Helper\DomainConfigurationInterface; use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper; use Kunstmaan\AdminListBundle\AdminList\Configurator\AbstractDoctrineORMAdminListConfigurator; @@ -91,4 +92,10 @@ public function getEntityName() { return 'Redirect'; } + + public function adaptQueryBuilder(QueryBuilder $queryBuilder) + { + parent::adaptQueryBuilder($queryBuilder); + $queryBuilder->orderBy('b.id', 'ASC'); + } }