The People present the same question, both by petition for writ of mandate in Civil No. 20365, and by appeal from an order dated September 18, 1961, dismissing the action against defendant, Duane Howard Kasparek, in Criminal No. 4078. On July 10, 1961, defendant was charged by information with petty theft, and with a prior conviction for petty theft in the Justice Court of Solano County in December, 1958. 1 Defendant was arraigned on July 17, 1961, and on July 24, 1961, duly entered a plea of guilty to the information; no plea was entered as to the prior conviction. Defendant’s counsel made a motion to have the matter referred to the probation officer for investigation and for delay in the pronouncement of judgment and sentence. This motion was granted and the matter further continued until September 18, at which time, the court made the following minute order: “Now come Deputy District Attorney E. Glynn Stanley and the defendant and his counsel, Edmund Pahl, to the bar of this Court, this being the time set for further consideration of the report of the Probation Officer and for Pronouncing of Judgment and Sentence. Bernard Dion, Deputy Solano County Probation Officer, is duly sworn and makes his further report. The Court, upon hearing the testimony of Dr. Arnold B. Lewis, who is duly sworn, orders the case dismissed. Defendant is ordered released from custody.” On September 21, 1961, the People filed their notice of appeal from this order in Criminal No. 4078, and on December 12 filed the petition for a writ of mandate in Civil No. 20365.
The first question is whether the above mentioned order of September 18 dismissing the action is an appealable order. The right of appeal is statutory. A judgment or order is not appealable unless it is expressly made so by statute. Section 1238 of the Penal Code designates the decisions in a criminal prosecution from which the People can appeal. The People here contend that the subdivisions which are pertinent are: subdivision 1, which provides for an appeal “From an order setting aside the indictment, information, or complaint” and subdivision 5, which provides for an appeal *853 “From an order made after judgment, affecting the substantial rights of the people.” Subdivision 1 of section 1238 has been generally understood to refer to an order setting aside the indictment or information on the grounds stated in section 995 of the Penal Code, i.e., in the case of an information on the ground (1) “That before the filing thereof the defendant had not been legally committed by a magistrate” or (2) “That the defendant had been committed without reasonable or probable cause.” In the case at hand, the order of dismissal was clearly not setting aside an information for such a defect in the proceeding. Furthermore, the effect of the order was not merely to set aside the information, but to dismiss the action. As no judgment was ever made or entered, the order of September 18 was clearly not an order after judgment under subdivision 5 of section 1238 of the Penal Code.
Rather, it appears from the record that the court was exercising its power to dismiss on its own motion pursuant to section 1385 of the Penal Code, which provides: “The court may, either of its own motion or upon the application of the prosecuting attorney, and in furtherance of justice, order an action to be dismissed. The reasons of the dismissal must be set forth in an order entered upon the minutes. No dismissal shall be made for any cause which would be ground of demurrer to the accusatory pleading.” It is well recognized that an order of dismissal in furtherance of justice, pursuant to section 1385 of the Penal Code, is not within the terms of section 1238 and, therefore, is not appealable. In dismissing a similar appeal in
People
v.
Valenti,
The order here does not purport to be one dismissing the action “in furtherance of justice’’ but even if we assume it to be of such character, it would not, as such, be appealable. The question of the appealability of such an order made under section 1385 is discussed in
People
v.
More,
The next question then is whether the writ of mandate is proper remedy. The People contend that under the *855 circumstances here presented, the trial court acted in excess of its jurisdiction in dismissing the action. We agree. There is no question that the defendant, who was represented by-counsel, duly and properly entered a valid plea of guilty. As the effect of a plea of guilty is to admit all of the elements of the crime charged, he stood convicted of the offense in the eyes of the law.
As stated in
Stephens
v.
Toomey,
The writ of mandate lies to compel the performance of an act by the court which the law specifically enjoins as a duty resulting from an office, trust or station (Code Civ. Proc., § 1085). When a court in a criminal case acts in excess of jurisdiction and without authority of law and there is no remedy by appeal, a writ of mandate will issue upon petition of the People to set aside the order or judgment and compel the trial court to pronounce judgment in the manner provided by law
(People
v.
Superior Court,
In view of the foregoing, the appeal in Criminal No. 4078 is hereby dismissed as a purported appeal from a nonappealable order, and it is ordered that a peremptory writ of mandate be issued in Civil No. 20365, directing the trial court to arraign the defendant for judgment and proceed as provided by law.
Shoemaker, J., and Agee, J., concurred.
Notes
Pursuant to section 666, subdivision 3 of the Penal Code, petty theft with a prior conviction of petty theft is punishable by imprisonment in the county jail not exceeding one year or in the state prison not exceeding five years. Thus, the matter was properly before the superior court.
