Add 404 and modify sorted_for to reject pages that don't have the specified sort_by attribute