diff --git a/public/modules/custom/helfi_annif/src/RecommendationManager.php b/public/modules/custom/helfi_annif/src/RecommendationManager.php index 2e29db424..c17572b77 100644 --- a/public/modules/custom/helfi_annif/src/RecommendationManager.php +++ b/public/modules/custom/helfi_annif/src/RecommendationManager.php @@ -85,7 +85,7 @@ public function getRecommendations(EntityInterface $node): array { if (!$results || !is_array($results)) { return $response; } - + usort($results, function ($a, $b) { if ($a->created == $b->created) { return 0;