Also keep in mind HTC, Huawei, ZTE do not have a 100% Android line up. They use other OSs also. So while Sony's numbers are 100% Android, other companies numbers do not reflect Android sales. They include multiple OS smartphones.
The only major non-Android OS they use is probably Windows, which has very small share like 2%. In case of China where ZTE & Huawei are based,
98% of market captured by Android & iOS.
92% of world market is captured by Android & iOS. Rest is filled by Symbian, Windows, Blackberry and Linux holding minuscule share. So its unlikely that any of companies will be selling decent number of non-Android devices, even selling a million of them in a quarter would be challenging for them.
^
IDC figures don't include Sony Data. Take the numbers from some other source. HTC was ahead of Sony only in Q2 2012. Q1 2012, Q3 2012 and Q4 2012 Sony was ahead of HTC. Google for the numbers.
Q1 Sony - 8 million
Q2 - 7 million
Q3 - 8.8 million
Q4 - 8.7 million
they still seem to be quite close. considering IDC yearly figures for HTC & above figures for Sony, yearly sales for Sony is 32.5m vs 32.6m for HTC. I am sure ZTE, Huawei would be close too, and others like LG, Lenovo will be closely following with a difference of a million or two.
In times of heavy competition, these figures can easily swing either way in just one quarter. HTC had disappointing 2012, but who knows, they may be back in 2013. There isn't a clear winner, getting established in that position, and thats probably a good thing for consumer, healthy competition to capture market share will make companies to bring out better models constantly at attractive prices.