Fixed sorting on music page

This commit is contained in:
Eduard Urbach 2017-06-27 16:54:16 +02:00
parent 064a3e1fa5
commit 622cc54845

View File

@ -18,6 +18,8 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusInternalServerError, "Error fetching soundtracks", err) return ctx.Error(http.StatusInternalServerError, "Error fetching soundtracks", err)
} }
arn.SortSoundTracksLatestFirst(tracks)
if len(tracks) > maxTracks { if len(tracks) > maxTracks {
tracks = tracks[:maxTracks] tracks = tracks[:maxTracks]
} }