Commit 2f1605cf authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11471 from brumsoel/master

Fix file size comparator return value
parents f664a31d 40174b6b
......@@ -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;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment