In actions for partition of lands, either by metes and bounds or by sale for division when the same cannot be equitably partitioned among the owners, if the defendant denies the title of the plaintiff or asserts an adverse claim or title in himself, the circuit court need not dismiss the complaint, but may direct the issue as to the title of the plaintiff or as to such adverse claim or title of the defendant, to be tried as other issues of fact are triable. If neither party to the action demands a jury, the circuit court shall try such issues as to the title of plaintiff or as to such adverse claim or title of the defendant, together with the other facts or issues of the case.