[TASK] Sort BE usergroup records in module "Backend Users" 97/33297/3
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 13 Oct 2014 19:52:14 +0000 (21:52 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 13 Oct 2014 20:17:43 +0000 (22:17 +0200)
Add a default ordering for the backend usergroup records
which makes it easier to find a specific group.

Resolves: #61686
Releases: master, 6.2
Change-Id: Ie6eaaaadc7eeca47c33686dc42cca7fc41cfe5b9
Reviewed-on: http://review.typo3.org/33297
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/beuser/Classes/Domain/Repository/BackendUserGroupRepository.php

index a9de4ac..49c183e 100644 (file)
@@ -21,4 +21,10 @@ namespace TYPO3\CMS\Beuser\Domain\Repository;
  */
 class BackendUserGroupRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
 
+       /**
+        * @var array Default order is by title ascending
+        */
+       protected $defaultOrderings = array(
+               'title' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING
+       );
 }