add method to update ancestors when edit sort