Did a bunch of really annoying playlist arithmetic so drag and drop
doesn't break...