diff --git a/src/Readability.php b/src/Readability.php index 6bcbf78d..332c9628 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -195,7 +195,7 @@ public function parse($html) // No luck after removing flags, just return the longest text we found during the different loops usort($this->attempts, function ($a, $b) { - return $a['textLength'] < $b['textLength']; + return $b['textLength'] - $a['textLength']; }); // But first check if we actually have something