There is an important question. According to Maimonides the Messianic Era and the Resurrection Era are two distinct periods. First, Moshiach comes and completes his work. After that the natural order/state of the world ends and the Resurrection Era begins.
But according to another traditional belief mainly based in Zohar, the resurrections of the righteous will occur immediately after Moshiach's arrival. Leshem, I think, shares the same opinion.
So what will happen? Maybe Maimonides believed that the Resurrection of the Righteous won't happen in the Resurrection Era? Will the resurrections will begin immediately after Moshiach's arrival or after an unspecified period of time? Or maybe there will be two resurrection periods, one for the righteous and one other for the rest? Leshem seems to think that the resurrection period will be one but, simply, the righteous will be the first to resurrect in that period. Can someone bring more sources? Thank you.
Is there a middle ground between the holy Zohar and Rambam?
Zohar I, 140a; Chiddushei Ritva on Rosh HaShanah 16b; Responsa of Radvaz, Vol. III, sections 1069, 644; Migdal David, p. 83a; Biurei HaZohar of the Tzemach Tzedek, p. 134. See also Sichos Kodesh 5710 (Kehot), p. 100, and Likkutei Sichos, Vol. II, p. 518.