In all actions for the partition of real estate, the court may: investigate and determine all questions of conflicting or controverted titles, and remove clouds upon the titles to any of the premises sought to be partitioned; vest titles, by its order, in the parties to whom the premises are allotted, without the forms of conveyances by minors or unknown heirs or other parties to the action; order a sale of the premises for the purpose of dividing the premises in proper cases, and by its order, vest the purchaser with title, and apportion incumbrances among the parties to whom the incumbered premises are allotted.
735 ILCS 5/17-124