Reversed the order in which albums are loaded from the database

This commit is contained in:
Ascendings 2016-04-21 00:37:09 -04:00
parent 6338aa4554
commit 03446c0cbd

View File

@ -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', [