If it appear to the satisfaction of the court that the property, or any part of it, is so situated that partition cannot be made without great prejudice to the owners, the court may order a sale thereof, for which purpose it may appoint one or more, but not exceeding three referees, in its discretion.
SDCL 21-45-28