summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Http/Controllers/IndexController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php
index 7ae362a..dbbbfb1 100644
--- a/app/Http/Controllers/IndexController.php
+++ b/app/Http/Controllers/IndexController.php
@@ -69,6 +69,8 @@ class IndexController extends Controller
});
}
$count = $articles->count();
+
+ $articles = $articles->orderBy('impact', 'desc');
$articles = $articles->orderBy('created_at', 'desc');
$articles = $articles->simplePaginate(10);