Browse Source

default base page sort contents by created date

bach 3 years ago
parent
commit
ed071a0472
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/modules/custom/materio_sapi/src/Controller/Base.php

+ 1 - 1
web/modules/custom/materio_sapi/src/Controller/Base.php

@@ -126,7 +126,7 @@ class Base extends ControllerBase {
       ->condition('langcode', $lang)
       ->range($this->offset, $this->limit)
       ->accessCheck(TRUE)
-      ->sort('changed', 'DESC');
+      ->sort('created', 'DESC');
       // ->condition('field_example', 'test_value')
     $this->results = $this->query->execute();