If in any of the foregoing cases, it shall appear to the court that the mortgaged premises are so situated that a sale of the whole will be most beneficial to the parties, the decree shall, in the first instance, be entered for the sale of the whole premises accordingly.
Neb. Rev. Stat. §§ 25-2152