summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);