Hi Vladimir,
there is no way to get sorted SAM directly.
If you use --outSAMtype BAM SortedByCoordinate you will get sorted BAM.
To get the sorted SAM as your output, you can output sorted BAM to stdout, and pipe it into samtools view, i.e.
$ STAR ... --outSAMtype BAM SortedByCoordinate --outStd BAM_SortedByCoordinate | samtools view -h - > Aigned.sorted.sam
Cheers
Alex