When the estate of any deceased person consists of real and personal property and it shall be necessary to sell a portion thereof, the chancery court, on petition of the executor, administrator, legatees or distributees, being satisfied that it would be to the interest of the distributees or legatees, may decree a sale of the real estate in preference to the personal estate.