diff --git a/Classes/Domain/Repository/Product/TeaRepository.php b/Classes/Domain/Repository/Product/TeaRepository.php index d090de1..5a3e1ee 100644 --- a/Classes/Domain/Repository/Product/TeaRepository.php +++ b/Classes/Domain/Repository/Product/TeaRepository.php @@ -3,6 +3,7 @@ declare(strict_types = 1); namespace OliverKlee\Tea\Domain\Repository\Product; use OliverKlee\Tea\Domain\Repository\Traits\StoragePageAgnosticTrait; +use TYPO3\CMS\Extbase\Persistence\QueryInterface; use TYPO3\CMS\Extbase\Persistence\Repository; /** @@ -13,4 +14,9 @@ use TYPO3\CMS\Extbase\Persistence\Repository; class TeaRepository extends Repository { use StoragePageAgnosticTrait; + + /** + * @var string[] + */ + protected $defaultOrderings = ['title' => QueryInterface::ORDER_ASCENDING]; } diff --git a/Tests/Functional/Domain/Repository/.gitkeep b/Tests/Functional/Domain/Repository/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/Tests/Functional/Domain/Repository/Fixtures/Product/Tea.xml b/Tests/Functional/Domain/Repository/Fixtures/Product/Tea.xml index 1117c65..874fa2d 100644 --- a/Tests/Functional/Domain/Repository/Fixtures/Product/Tea.xml +++ b/Tests/Functional/Domain/Repository/Fixtures/Product/Tea.xml @@ -6,4 +6,10 @@