This is a shock, not at all what you expected and I don't understand the judge's ruling..perhaps it has to do with "no fault" divorces....but you were not the one to commit adultery and leave the home on numerous occasions.
This is your home and you wished to remain there. You were living together in the home and co parenting. I presume that her motion was to have you leave your home so she can continue to live her life comfortably without any disruption.
I also see the loss of seeing your son every day..having him visit you in a new place is not quite the same.....still, as you have unselfishly suggested, the boys will remain in a stable environment for now.
Its 's one thing to be forced into a divorce, quite another to have what is important to you taken away...no consequences at all for the person who is destroying your family.
You will survive this but it is a huge wound on your heart and one that will take some time to adjust to...there are many things, even so many years later that affected my life ...what should have been an easy retirement with plenty of financial resources, instead has me concerned about having enough money to live on as I age and the list goes on......I can "accept" that this happened but I still do not like it.
Quite honestly, my life is not "better" or more wonderful or richer than it was when we were an intact family. It's been really hard to create a new life, to be alone, to deal with everything by myself..although I can and have done so. I am realistic, I can fill my life with all kinds of GAL stuff and I do...but there is an emptiness that nothing has been able to fill.
All of us are different. I've managed to salvage some of what is left of this family. I am grateful for that and the comfort in the contact that we have with one another.
I am very sorry that this has happened to you. What I do know is that we are resilient and most of us do find a way to figure out how to do what we need to do to bring us peace and stability.
Sending big ((((((HUGS)))))))