add editing for sort