]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix file size comparator return value
authorbrumsoel <brumsel@losecatcher.de>
Tue, 7 Oct 2014 23:17:45 +0000 (01:17 +0200)
committerbrumsoel <brumsel@losecatcher.de>
Tue, 7 Oct 2014 23:17:45 +0000 (01:17 +0200)
apps/files/lib/helper.php

index 2a5233b6542cd37734af8cd7b3c1e48279cf045d..e4bfcb4e9eebf0c0ab9eb9a01d0a485572a705e5 100644 (file)
@@ -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;
        }
 
        /**