Question

do steps matter in mechanisms. I have the mechanisms down, but will it matter which step I do first or last?

enter image description here

the last step where the carboxylate ion grabs the h? In my mechanism that portion gradbed it earlier on, and i put that as the leaving group. is that fine