Adds sorting for the playlist