It could be a blessing in disguise mate.
I was sacked out of the blue in August and I was out of work for 7 weeks, my job now is SO much better than my previous one and I'm glad I was sacked now as it made me go and get this job. Felt like crap at the time though!
Chin up mate and I hope it all works out for you.