[TASK] Extension manager: default sorting for Extensions
[Packages/TYPO3.CMS.git] / 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();
        }