refactor sorting logic in movies view, use angular orderBy