If it appears by evidence to the satisfaction of the court that a partition cannot be made without great prejudice to the owners, it shall order a sale of the property.