Changes to code regarding hw2-1
sorting working for both title and rating