Browse Source

improve sort by create time

master
filesite 2 months ago
parent
commit
efea384a6c
  1. 2
      plugins/Html.php

2
plugins/Html.php

@ -79,7 +79,7 @@ Class Html {
public static function sortFilesByCreateTime($files, $way = 'desc') { public static function sortFilesByCreateTime($files, $way = 'desc') {
$ctimes = array(); $ctimes = array();
foreach($files as $id => $item) { foreach($files as $id => $item) {
$ctimes[$id] = $item['fstat']['ctime']; $ctimes[$id] = min($item['fstat']['ctime'], $item['fstat']['mtime']);
} }
if ($way == 'desc') { if ($way == 'desc') {

Loading…
Cancel
Save