diff --git a/src/models/OptimizedImage.php b/src/models/OptimizedImage.php index 642944d..2d269e0 100644 --- a/src/models/OptimizedImage.php +++ b/src/models/OptimizedImage.php @@ -620,7 +620,7 @@ protected function getSrcsetSubsetArray(array $set, int $width, string $comparis } // Sort the arrays by numeric key ksort($set, SORT_NUMERIC); - ksort($this->variantSourceWidths, SORT_NUMERIC); + sort($this->variantSourceWidths, SORT_NUMERIC); foreach ($this->variantSourceWidths as $variantSourceWidth) { $match = false; switch ($comparison) {