Sonar doesn't change the sound of your music when exporting it. If your sound changed, then you may have set the export with the wrong export settings and it could be that the playback player you are using, has some sort of filters, like EQ or something.
I mange to get the same exact sound i hear in sonar every time i export, so you musty have some sort of configuration problem when your exporting or its your playback devise.
Trust me, if sonar didn't export exactly what you hear, it would have been out of business 15 years ago.
CJ