[TASK] Extension manager: default sorting for Extensions 35/30735/4
authorFelix Kopp <felix-source@phorax.com>
Sun, 15 Jun 2014 09:13:17 +0000 (11:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 19 Jun 2014 16:38:23 +0000 (18:38 +0200)
EM "Get Extension" does not show the awesome extension culture
that lives in the TER. Change sorting basically with the primary goal
to order extensions by update.

Resolves: #59583
Releases: 6.3, 6.2
Change-Id: Ie8aebc13c41427e0603fa5313b794996d01fbc44
Reviewed-on: https://review.typo3.org/30735
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Robert van Kammen
Tested-by: Robert van Kammen
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php

index c507264..f9d1d49 100644 (file)
@@ -29,6 +29,7 @@ namespace TYPO3\CMS\Extensionmanager\Domain\Repository;
  * @author Susanne Moog <typo3@susannemoog.de>
  */
 class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
+
        /**
         * @var string
         */
@@ -77,6 +78,11 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
        public function findAll() {
                $query = $this->createQuery();
                $query = $this->addDefaultConstraints($query);
+               $query->setOrderings(
+                       array(
+                               'lastUpdated' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING
+                       )
+               );
                return $query->execute();
        }