He wasn't doing you a favour and that judge was a complete idiot to say so. Mesher Orders ought to be banned, they might have worked in the old days when house prices were about 3 times salary, the resident parent could afford the mortgage and the non-resident could still buy somewhere else but they do not work now.
I'm still going through divorce and made it clear to my wife that I will not agree to a Mesher Order by consent and I will spend a lot on solicitors and barristers to fight it so there won't be any equity left if it comes to final hearing. Even if she wins, I'm leaving the country and going somewhere where wages are lower to fuck her over because without decent amounts of CM she cannot afford to pay the mortgage. Her odds of getting one are poor anyway; a study by the University of Bristol found that in 400 divorces there were 3 Mesher Orders and 4 deferred charges and even these might have been by consent (the study didn't differentiate). The judges interviewed almost unanimously agreed that they didn't like them.
Overwhelmingly, the way divorces end are that the house gets transferred to one party who may well have to take out as big a mortgage as they can possibly afford in order to give the other some of the equity (unless there is a big pension to offset). Normally the resident parent gets 1-2 years to release the other from the mortgage or the house is ordered to be sold.