Below you can see the front-view size comparison of the Nikon S31 and Sony NEX-3. The Sony NEX-3 is 3 mm shorter and 9 mm thinner than the Nikon S31 but it is also 12 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.