Added working sort by year and rating
added working sort by functions by clicking the links on the movies index.erb