diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index e4bfcb4e9ee..6a6db9276a0 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -80,7 +80,7 @@ class Helper public static function compareTimestamp($a, $b) { $aTime = $a->getMTime(); $bTime = $b->getMTime(); - return $aTime - $bTime; + return ($aTime < $bTime) ? -1 : 1; } /**