In order, I had/am having: top surgery, total hysterectomy with BSO, phalloplasty. First two are done, last one is next month.
I don't think the order matters in terms of top surgery and the hysto. Some form of hysterectomy will likely be required prior to phalloplasty, depending on your surgeon and what combination of procedures you're looking to have done in conjunction with the phalloplasty (ie. vaginectomy, urethral lengthening, etc.)
Most surgeons also want a certain amount of time on T and living as male before they will agree to perform any kind of bottom surgery on you, so unless you have issues with your plumbing, you may have to get top surgery first. The providers I've spoken with and personally used all consider a hysterectomy to be a form of bottom surgery when performed on transmen. So unless you're having issues that would necessitate such a removal, you will likely have to proceed in the order that I did.
Phalloplasty is undoubtedly the most painful. I am not looking forward to it in that sense.