From efea384a6cd0ec73711a1172148eddb9a219aeba Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 29 Sep 2024 14:41:47 +0800 Subject: [PATCH] improve sort by create time --- plugins/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Html.php b/plugins/Html.php index 725321f..39112c9 100644 --- a/plugins/Html.php +++ b/plugins/Html.php @@ -79,7 +79,7 @@ Class Html { public static function sortFilesByCreateTime($files, $way = 'desc') { $ctimes = array(); foreach($files as $id => $item) { - $ctimes[$id] = $item['fstat']['ctime']; + $ctimes[$id] = min($item['fstat']['ctime'], $item['fstat']['mtime']); } if ($way == 'desc') {