And Abraham came to eulogize Sarah and to cry over her -
...We always find that crying comes before eulogizing, but here it is the opposite! (As it says in Talmud Moed Katan 27b: "3 days of crying and 7 days of eulogy.") And so it appears that with most deaths, the grief becomes lessened over time, because with the passing of days, everything is forgotten. But with a tzadeket like this, every day they felt her absence more and more, because of the absence of her Torah and her good deeds, which were now lost to the generation. And so it places the eulogy before the crying. Furthermore, our Rabbis of blessed memory said that, "Anyone whose first wife dies, it is as if the Holy Temple had been destroyed in his days." (Sanhedrin 22a) So at first he came to eulogize her, for her sake, but he did not cry over her because he knew that she was ascending to the heights, to a more precious and honored place than she had on this gloomy earth. But afterwards, he cried over the Holy Temple that had been destroyed in his days, and so did the Angels of Peace weep bitterly over its destruction.