change the algorithm moving playlist items

Change-Id: I198da58e9795da4025767f0dc54ae1d8da58f694