summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/Search/CommentsSearchProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/lib/Search/CommentsSearchProvider.php')
-rw-r--r--apps/comments/lib/Search/CommentsSearchProvider.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/comments/lib/Search/CommentsSearchProvider.php b/apps/comments/lib/Search/CommentsSearchProvider.php
index bab10a58eeb..e6443c20a2f 100644
--- a/apps/comments/lib/Search/CommentsSearchProvider.php
+++ b/apps/comments/lib/Search/CommentsSearchProvider.php
@@ -77,7 +77,11 @@ class CommentsSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(string $from): int {
+ public function getOrder(string $route, array $routeParameters): int {
+ if ($route === 'files.View.index') {
+ // Files first
+ return 0;
+ }
return 10;
}