From ed071a047235032dd74d0f5be4fe527dbcee6fb4 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 24 Aug 2021 23:46:44 +0200 Subject: [PATCH] default base page sort contents by created date --- web/modules/custom/materio_sapi/src/Controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/modules/custom/materio_sapi/src/Controller/Base.php b/web/modules/custom/materio_sapi/src/Controller/Base.php index 1168498d..4de3e5ae 100644 --- a/web/modules/custom/materio_sapi/src/Controller/Base.php +++ b/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();