What do you mean when you say that the court has agreed to sell the marital home?
Is there any equity in it? If so, has there been any decision about the split? Usually there would be some provision for somewhere for you and the children to live - has that not been taken into account? At the very least you should get a deposit for somewhere to rent plus spouse maintenance for a while so you can get back on your feet.
I thought you were able to stay in the house with the kids until the youngest was 18. What does your solicitor say? Mind you i have no faith in them whatsoever.
I am so sorry for your pridicament. i do wish you well.
It seems lots of people on here are thinking of you.
Take care and never give up. take one day at at a time. do something nice for YOU so that you can look forward something. Things will sort themselves out.