Stopped sorting on songchange, pushing the shifted value from the playlist array

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-11 00:11:52 +02:00
parent 3f6eba76c7
commit 3774f14511

View File

@@ -68,11 +68,12 @@ function channel_function(msg)
full_playlist[0].guids = [];
full_playlist[0].added = msg[1];
full_playlist[full_playlist.length-1].now_playing = false;
full_playlist.sort(predicate({
/*full_playlist.sort(predicate({
name: 'votes',
reverse: true
}, 'added'));
*/
full_playlist.push(full_playlist.shift());
populate_list(full_playlist);
}
}