User interface for ranking a list of books

I hope to find some plugin or existing code to implement the following
feature because it is very common on the net.

In my application, each user has a list of favorite books. After
login, each user should be able to rank this list of books. Ideally,
the user is presented with his list. He then can drag and drop to
rank the books in the list and click submit to save the new rankings.
Or he can just type in the numeral ranking next to each book. I
remember that Netflix allows its users to rank their list of movies in
this fashion.

Can you point me to some plug-in, existing code or suggest how I can
implement this? I think this feature has been implemented many times
before. I don’t want to reinvent the wheel. Thanks much.