diff --git a/src/SearchServices/Filters/SnapshotFilter.php b/src/SearchServices/Filters/SnapshotFilter.php index 3908119c..3ee369ff 100644 --- a/src/SearchServices/Filters/SnapshotFilter.php +++ b/src/SearchServices/Filters/SnapshotFilter.php @@ -3,6 +3,13 @@ namespace Szurubooru\SearchServices\Filters; class SnapshotFilter extends BasicFilter implements IFilter { + const ORDER_ID = 'id'; + const REQUIREMENT_PRIMARY_KEY = 'primaryKey'; const REQUIREMENT_TYPE = 'type'; + + public function __construct() + { + $this->setOrder([self::ORDER_ID => self::ORDER_DESC]); + } }