The respondents (Hepworth, et al.) sued the appellants (Gardner, et al.) for the possession of 25 sheep, claiming ownership thereof, and alleging their value to be $115, and the damage for their detention to be $100. The appellant filed answer, the case was tried with a jury, and judgment .entered for respondents. Thereupon appellants bring the case to this court.
*442The judgment was tbat respondents were tbe owners, and entitled to tbe possession, of three head of sheep, and that defendants (appellants) should deliver same to respondents, and, in case the delivery thereof could not be had, that respondents have and recover from the appellants the sum of fifteen dollars, the value, with damages in the sum of five dollars, together with respondents’ costs, taxed at $180.30. The appellants claim that the judgment for costs is unwarranted; that the amount claimed and the amount recovered are each too small to carry costs in the district court; and that the case was one for the justice’s court. The amount prayed for in the complaint was under $300. The appellant urges that, this being so, the district court did not have jurisdiction to render judgment for costs.
The territorial statute then exisiting specified that if the value of the property was less than $300 no costs could be allowed to plaintiff: Comp. Laws, 1876, pp. 529, 530; secs. 473, 476, Civil Pr. Act, as amended in Laws 1882, p. 80. But before judgment was entered in this case the statute had been changed so as to read “$100,” instead of “$300.” Laws 1884, pp. 316, 317, secs. 904, 907. The appellants urge that section 1288 of the Code of Civil Procedure (Laws 1884, p. 380) requires that the statute existing at the commencement of the action should control. That section (1288) repeals all laws in contravention with such Code, but saves and excepts all then existing rights. The appellants, however, did not, as to costs, have any rights existing when the repealing clause was enacted. No rights of costs accrued until judgment, which generally carries costs. Their allowance is dependant upon the judgment, and not upon the amount claimed; they are incident to the judgment. This is the general rule, and, according to the authorities, the accepted doctrine is that the statute in force at the time the judgment is rendered will control the question: Ellis v. Whittier, 37 Me., 548; Meigs v. Parke, 1 Morris, (Iowa), 378; Billings v. Segar, 11 Mass., 340; McMasters v. Vernon, 4 Duer, 625; Stewart v. Lamoreaux, 5 Abb. (N. Y.), Pr., 14.
In the case at bar, however, it is immaterial whether this *443be true or not. The organic act, and other acts of Congress, take the place of a constitution or charter, as the fundamental law of the local government of the territory: National Bank v. Yankton Co., 101 U. S., 133. These acts give the district court general original common-law and chancery jurisdiction, without regard to amount; but they authorize the giving of civil jurisdiction to justices of the peace concurrent with the district courts, when the sum claimed be less than $300. The jurisdiction of the district courts being thus fixed by the acts of Congress, no act of the territorial legislature that militates against it can be upheld. The territorial enactments are subordinate to the'United States statute, and must be consistent therewith. In various states — such as Massachussetts, Michigan, California and Nevada — we find statutes as to costs similar to ours, requiring that, where judgment in the higher court is for less than a specified sum, costs shall not be allowed. But such statutes are made to support a constitutional or statutory provision giving justices of the peace exclusive jurisdiction up to a certain limit, below which costs are prohibited in the higher courts.
. As to the subject-matter of the action, the jurisdiction is generally dependant upon the amount claimed by the plaintiff. This being the case, then, without ‘some such provision regarding costs as we have referred to, in states where justice’s courts have exclusive jurisdiction below a certain limit, parties might, in order to.get their cases into the district courts, claim an amount above the jurisdiction of the justice’s court, and above what they were really entitled to. The object of the statute disallowing costs in such cases in the higher courts is to check and prevent this being done. In the language of the supreme court of Massachussetts: “The purpose of the various statutes upon this subject has been to confine the party instituting an action to that particular tribunal to which jurisdiction thereof properly appertains, and, as a penalty for a failure in this respect, the party is subject to the loss of his costs:” Joannes v. Pangborn, 6 Allen, 243.
In states where justices of the peace have exclusive jurisdiction below a specified amount, such an object or pur*444pose is proper, and the statute prohibiting costs in the higher court is wise; but in this territory justices of the peace do not have exclusive jurisdiction in any sum, and hence it cannot be said in any case that the jurisdiction “properly appertains” to the justice’s court any more than to the district court, nor that the imposing a penalty upon a party for preferring to bring, his action in the district court is wise. Below a certain limit the jurisdiction of these courts is concurrent, and' within such concurrent limit the legislature ought not to discriminate. The reasoning advanced, therefore, to uphold the prohibition of costs in the district courts, cannot apply in this territory.
The territorial legislature, in the face of the acts of Congress giving the district courts general jurisdiction in all amounts, could not, in terms, give justices of the peace exclusive jurisdiction in any sum. What the legislature could not do directly it could not do indirectly, by denying costs in one court and giving the same in another, when both courts have concurrent jurisdiction. The matter of costs is unquestionably a rightful subject of legislation by the territorial legislature, but, like every other such, subject, the legislation upon it must be consistent with the organic act, and other acts of Congress. When the legislature fixes a penalty upon a party for bringing his action in the district court, and enacts a statute with the effect and object of forcing litigation in certain cases into justices’ courts, when such courts have no jurisdictional authority in such cases other than that held by the district courts, it passes the limit of its legislative power, and its action to such extent is nugatory. By section 907 of the Code of Civil Procedure, (Laws 1884, p. 317) a general authority is given to the district courts to allow costs in “other actions” than those specified in section 904 of same Code. (Id. 316). The section thus referred to (904) merely defines the classes of cases in which a party will be entitled to his costs as of course, and provides that in cases like the one at bar .the plaintiff will not have costs as of course, if the value of the property be less than $100. By the words “other actions,” in section 907, no doubt, was intended such actions as were not provided for in sectioir *445904. The cases where the value of the property amounted, to less than §100 were not referred to nor provided for in such section. As a consequence, we conclude that in such cases it was, under section 907, left discretionary with the court to allow or not to allow costs. In saying this we are not unmindful that in said section 907, after the general clause referred to, it is declared that no costs shall be allowed iii the district courts if the value of the property is less than $100. But wre have already seen that it is beyond the |)ower of the legislature- to discriminate in the matter of costs between two courts having concurrent jurisdiction of the subject-matter. Hence the clause which purports to negative the general grant of power to allow costs is a nullity, and it wras within the power of the district court to allow the costs in this case, no matter how small the value of the property. The decision of this point disposes of the controlling question of the case, and consequently disposes of the whole case.
The judgment of the court below is therefore affirmed.
ZANE, C. J., and Powers, J., concurred.