Use commit timestamps for ElasticSearch and sort on last commit time.
[phorkie.git] / www / new.php
index 7a708917ef45912a6be54cb6e82e069bdbc90858..965f5340e421f5eda836367bf0b27e6847502427 100644 (file)
@@ -28,7 +28,7 @@ render(
         'files'       => $phork,
         'description' => '',
         'htmlhelper'  => new HtmlHelper(),
-        'recents'     => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'),
+        'recents'     => $db->getSearch()->listAll(0, 5, 'modate', 'desc'),
         'dh'          => new \Date_HumanDiff(),
     )
 );