If a person interested shall appear and claim the property, it may be sold by consent of the parties or upon examination and certificate of its perishable nature or of its being expensive to keep, as in case of sale of like property attached, unless it is provided by law that it shall be destroyed, or unless the court shall otherwise order.