mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #11471 from brumsoel/master
Fix file size comparator return value
This commit is contained in:
commit
2f1605cfc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue