Playlist add/remove position error
If you have a playlist, then remove a track at position p
and then reinsert it at position p
, the new position for the track is off.
Here is the result in the DB
Notice the intermediate state where the positions are 1, 3, 4.