implemented playlist sorting, closes #463
also saving metadata in browser session, so that playlists
can still be sorted after reloading the browser tab