Skip to content
Snippets Groups Projects
Commit d055daab authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Add a default ordering setting for the department repository

parent 5bf0f926
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ namespace SGalinski\SgJobs\Domain\Repository;
* This copyright notice MUST APPEAR in all copies of the script!
*/
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
use TYPO3\CMS\Extbase\Persistence\Repository;
/**
......@@ -35,5 +36,11 @@ use TYPO3\CMS\Extbase\Persistence\Repository;
* @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
*/
class DepartmentRepository extends Repository {
/**
* @var array
*/
protected $defaultOrderings = [
'sorting' => QueryInterface::ORDER_ASCENDING,
'title' => QueryInterface::ORDER_ASCENDING
];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment