X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/cb577b3170e2d6e5c44aa29c37ab5d9751a66636..f98e891b454e5677bdf61f476e366b01af713b50:/src/phinde/Elasticsearch.php diff --git a/src/phinde/Elasticsearch.php b/src/phinde/Elasticsearch.php index 6c90480..c24f6cd 100644 --- a/src/phinde/Elasticsearch.php +++ b/src/phinde/Elasticsearch.php @@ -135,6 +135,9 @@ class Elasticsearch ) ); + if ($sort == '' && $GLOBALS['phinde']['defaultSort'] == 'date') { + $sort = 'date'; + } if ($sort == 'date') { $sortCfg = array('status.modate' => array('order' => 'desc')); } else {