There is another way Noeptolemos ... you could record the previous and the next ranked song with each song. Let's say songs 3, 9, 4 and 5 were ranked in that order, you will have something like this:
0 - 3 - 9
3 - 9 - 4
9 - 4 - 5
4 - 5 - 999999
When somebody places song 4 above 9, you should change the links as follows:
0 - 3 - 4
3 - 4 - 9
4 - 9 - 4
4 - 5 - 999999
Nice job to script
