If a person is convicted of a crime committed while confined in a county or municipal jail, upon conviction, the sentence does not commence to run until the expiration of the last sentence of imprisonment, unless the sentencing court specifically orders otherwise.
SDCL 23A-27-36.1