The Nokia N8(released 2010) won in the 12MP camera comparison test held by All About Symbian between our good old Nokia N8 and new Sony Xperia S.
Main points from AAS-
But the N8 walks all over the Xperia S when it comes to the test that counts: photo quality. Sorry, Sony.
The 2012 Xperia S is reckoned to have one
of the best smartphone cameras in the world - there's no doubt that it
captures more detail than the iPhone 4S's camera, but the latter probably wins out in terms of producing more pleasing images, I'd say
(at lower resolution). However, both units produce photos which aren't
as detailed as those from the 2010 Nokia N8 - the much larger sensor,
the Carl Zeiss optics and the Xenon flash all add up to images which still
rule the phone world in March 2012.
It's good to see that N8 is still the CameraPhone king! (until the PureView808 is released)
Hit the source link to read about the test in detail
Source