Harry didn't destroy the diary with the sword. He used the serpent's tooth.
Sorry, I don't think I ever replied to you. You're added!!