If you are not exporting what you hear in Sonar, then it you are doing one or 2 of these things wrong.
You either have a routing problem and/or you are not setting up your export properties correctly. Its 99.9% always one of those 2 things or both of those things.
For routing:1.)Tracks go to the Master bus.
2.) Sends on the tracks, if you have them, go to a bus.
3.) Buses go to the Master bus
4.) Master bus goes to Main outs 1/2 (sound card outs)
For Exporting properties:1.)You basically should use
'Entire Mix' for your export source or
'Main Outs'2.)If you want ot burn a CD or play it on the pc, you should set the bit depth to 16 and the sample rate to 44.1kHz
3.) If you are going down in bit depths, you should use a dither. POW1,2 or 3 are good to use.
There you have it!!
CJ