After hearing, the court may issue an order directing the tenant to pay to the county treasurer all rents payable under the terms of the lease of the property, either due or to become due, and also directing the county treasurer to apply the said payments of rent to the delinquent and current taxes and special assessments, including penalty and interest, and the costs and expenses of the proceeding as determined and taxed by the court. In such order, or thereafter, upon application and hearing, the court, in its discretion, may allow to the taxpayer a percentage of rents, property, and crops, as to the court may seem just, up to and including fifty percent thereof, and may order the treasurer to pay such percentage to such taxpayer at such times and under such circumstances as to the court may seem just and equitable.
N.D.C.C. § 57-21-03