summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2023-12-29 17:05:10 +0100
committerhorus2023-12-29 17:05:10 +0100
commit67e074289a05e2b21235ea369b3a0c04211aee87 (patch)
treef54f8d20b866d9e4e3ebee887e858fa6727ce89c
parent75e9f607b7c026deff140bb4bba48804c05612b1 (diff)
downloadcurious-67e074289a05e2b21235ea369b3a0c04211aee87.tar.gz
Change order in topic/(name) feed to respect impact factor.
-rw-r--r--app/Http/Controllers/IndexController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php
index da93efa..50f2bf4 100644
--- a/app/Http/Controllers/IndexController.php
+++ b/app/Http/Controllers/IndexController.php
@@ -31,6 +31,7 @@ class IndexController extends Controller
abort(404);
}
$articles = $articles->getArticles();
+ $articles = $articles->orderBy('impact', 'desc');
$count = $articles->count();
$articles = $articles->simplePaginate(10);