46-22-307. Appeal by prosecution. An appeal may be taken to the supreme court by the prosecution from an order of judgment discharging the petitioner. The court may admit the petitioner to bail pending appeal as provided in 46-9-107. The appeal must be taken in the same manner as in civil actions.