From 03446c0cbd9cdd27fc6aee7f546189afa57282dc Mon Sep 17 00:00:00 2001 From: Ascendings Date: Thu, 21 Apr 2016 00:37:09 -0400 Subject: [PATCH] Reversed the order in which albums are loaded from the database --- app/routes/music.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/music.php b/app/routes/music.php index 609244f..2e1ea9e 100755 --- a/app/routes/music.php +++ b/app/routes/music.php @@ -2,7 +2,7 @@ $app->get('/music', function() use($app) { - $albums = $app->album->all(); + $albums = $app->album->all()->sortByDesc('release_date')->values()->all(); $songs = $albums[0]->songs; $app->render('music.twig', [