Added sorting functionality to index action of movies.