The point involved in the three cases above entitled is identical, and they may be considered together.
The judgment in each case quieted the plaintiff's title to certain water rights subject to the title of the appellant, and the court awarded plaintiff its costs. The appellant moved to strike out the plaintiff's cost bill. From the order in each case denying the motion the appeal is prosecuted. *Page 397
It is conceded that the action concerning as it does the water rights of the parties in a certain river in Fresno County, is an action in the nature of a suit to quiet title to real property. It falls, therefore, so far as regards costs within the provisions of section 1022 of the Code of Civil Procedure, which declares that "Costs are allowed of course to the plaintiff, upon a judgment in his favor, in the following cases: . . . 5. In an action which involves the title or possession of real estate. . . ." While it is true that the plaintiff did not receive all that it asked for in its complaint, nevertheless it recovered a judgment for part of its demand, and is therefore entitled to costs (Hoyt v. Hart,149 Cal. 722, 731, [87 P. 569]; F. A. Hihn Co. v. City of SantaCruz, 24 Cal.App. 365, [141 P. 391].) In each case the appellant in its answer also claimed the right to divert certain quantities of water from said river, and also alleged that its rights in that regard were prior to those of the plaintiff. It also recovered judgment for part of what it claimed, and perhaps it was entitled to its costs; but as to this it is sufficient to say that that question is not before us.
The order in each of the cases above entitled denying appellant's motion to strike out plaintiff's cost bill is therefore affirmed.