The court shall adjudge the rights and interests of the parties, and that partition be made if it appears that the parties are entitled to it. When the rights and interests of plaintiffs are established or are undisputed, the court may order partition to be made, and the interest of plaintiffs and such of the defendants as have established their interest to be allotted to them, leaving for future adjustment in the same action the interest of any other defendants.