sorting the list of movies