An appeal by a prosecuting attorney may be taken to the Supreme Court from:
An appeal under this section may not be taken after a defendant has been put in risk of double jeopardy and is not a matter of right but of sound judicial discretion. Appeals from such orders shall be taken in the same manner as intermediate appeals in subdivision § 15-26A-3(6). No appeal taken under this section shall delay any trial unless a stay be granted in the discretion of the Supreme Court.
SDCL 23A-32-5