Section 10. In all other cases the court shall award costs to the prevailing party or may order the costs and charges of keeping and selling the property or any part thereof to be paid out of the proceeds.