The petitioner brought her action for divorce. The defendant answered by denials, without seeking affirmative relief. Thereafter petitioner filed a proper notice of dismissal of her action with the clerk of the court, and entered in a book kept for that purpose by the county clerk of the city and county of San Francisco a direction to the county clerk to enter an order of dismissal. The clerk refused to do so, basing his action upon an order of the superior court directing that all proceedings in relation to the dismissal be stayed, unless the plaintiff, within five days after *553 a copy of the order, pay to defendant the amount of his costs, and if plaintiff failed to make such payment, then the attempted dismissal of the action to be annulled and set aside, and the cause placed upon the calendar for trial. Plaintiff, before the court, objected to this order, refused compliance with it, and objected to the further order of the court staying the entry of the order and setting the action for trial. Plaintiff had paid the costs of entering the judgment, but the costs which the court insisted she should pay, as a prerequisite to her right to the entry of the order of dismissal, were the costs embraced in the cost bill filed by the defendant. Petitioner, therefore, has sued out her alternative writ for prohibition to restrain the court from proceeding further in the matter.
The only costs which a plaintiff is required to pay before dismissal of his action are the clerk’s costs for entering the order. Subdivision 1 of section 581 of the Code of Civil Procedure is so interpreted in
Todhunter
v.
Klemmer,
It appears, therefore, that plaintiff had done everything that the statute required, and stood entitled, as an absolute right, to have her order of dismissal entered. In this she was prevented by the order of the court directing the clerk to refuse to enter the order until plaintiff had complied with an illegal condition. As is said in
Page
v.
Superior Court,
above quoted, in a proper case, if his fee is paid, the clerk will, on motion, be compelled by the court to enter a judgment of dismissal or nonsuit, and the court will not require the party interested to resort to
mandamus.
Here the plaintiff applied to the court, in furtherance of her right thus clearly pointed out, and the court not only refused her the right, but imposed upon her an illegal condition as the price of her order of dismissal. This the court had no right to do. Its sole power and its sole jurisdiction under the circumstances indicated was to have ordered the proper entry of dismissal in the register. Its refusal to do this, and its subsequent order setting the case for trial, were unwarranted and in excess of its jurisdiction. Against this it is urged that in
Page
v.
Superior Court
it was decided that the action was still pending until judgment of dismissal was “entered accordingly.” At the time of the decision in the Page case the statute declared (Code Civ. Proc., sec. 581) an action may be dismissed ... in the following cases: “By the plaintiff himself at any time before trial upon payment of costs. . . . The dismissal mentioned in the first two subdivisions is made by entry in the clerk’s register; judgment may thereupon be entered accordingly.” In the Page case, though the order of dismissal had been given and the entry .in the clerk’s register made, the judgment had not been actually entered, and the ruling in
Page
v.
Superior Court
is based wholly upon this omission. Subsequently, the legislature, with design,
*555
amended this section by eliminating the provision “that judgment may thereupon be entered accordingly,” so that it now reads, and read at the time this question arose: “The dismissals mentioned in subdivisions 1 and 2 hereof are made by entry in the clerk’s register.” Even under the law as it stood when
Page
v.
Superior Court
was decided, a different construction had been put upon the section by this court in
Thompson
v.
Spraig,
therefore at liberty to dismiss the action at any time before trial upon the payment of costs (Code Civ. Proc., sec. 581). This they did,—the dismissal having been entered by the clerk. The purported trial of the 5th of November, 1883, was therefore of an action which had been previously dismissed.” But aside from this consideration, we think the change in the statute was designed to be, and is in fact, a substantial change. No judgment is any longer required to be entered. The mere entry of the order upon the clerk’s register of actions is sufficient, and, as was said in effect in
Page
v.
Superior Court, .
above quoted, the only jurisdiction left in the court upon this showing was the jurisdiction to order the clerk to make the proper entry.
(Kaufman
v.
Superior Court,
Let the writ issue as prayed for.
Beatty, C. J., Van Dyke, J., and McFarland, J., concurred.
