From 3774f14511c3e34a109a6b8e795d91aa2c049f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Thu, 11 Jun 2015 00:11:52 +0200 Subject: [PATCH] Stopped sorting on songchange, pushing the shifted value from the playlist array --- static/js/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/list.js b/static/js/list.js index 0a44634f..77e1e01e 100755 --- a/static/js/list.js +++ b/static/js/list.js @@ -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); } }