]> BookStack Code Mirror - bookstack/blobdiff - app/Services/SearchService.php
Finished migration of last angular code
[bookstack] / app / Services / SearchService.php
index 3d1d45c3b77d47ab356285f0f45ffa9c58b90115..bb92a1d7c83cfcaba5f7eedd435865f44ac2a1a3 100644 (file)
@@ -92,7 +92,7 @@ class SearchService
         return [
             'total' => $total,
             'count' => count($results),
-            'results' => $results->sortByDesc('score')
+            'results' => $results->sortByDesc('score')->values()
         ];
     }