fix first two playlist entries having 0 as sort_order
make call of generate_playlist_from_tsv depend less on globals