[TASK] Sort BE usergroup records in module "Backend Users" 00/33300/2
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:19:26 +0000 (22:19 +0200)
Add a default ordering for the backend usergroup records
which makes it easier to find a specific group.

Change-Id: I99f490193ca8b070c0d71a3a422bbc4ca4a3f3c6
Resolves: #61686
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/33300
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
+       );
 }