diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index 2a5233b654..e4bfcb4e9e 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -93,7 +93,7 @@ class Helper public static function compareSize($a, $b) { $aSize = $a->getSize(); $bSize = $b->getSize(); - return $aSize - $bSize; + return ($aSize < $bSize) ? -1 : 1; } /**