Hi,
The easiest way that I can think of is:
Create the table dynamically and then when you move up and down, swap the table rows using javascript.
Certainly the fancy way would be to use something like the
Mootools Sortables class to sort a list. You could combine that with some type of server-side language to have it update when they click an Apply button, or even have it update the database every time they move something.
Addionitally you're going to need a column in your database named "Order" or something. I assume that your "Likings" table has the columns song_id, user_id. Add to that an order column and when they move the songs to different positions, just update the row.
If your database is arranged differently, you can still use my method. Just add an order column to your table.