When a bill in equity is filed to remove a cloud on the title to real estate relief shall not be denied the complainant because he has only an equitable title thereto and is out of possession, but the court shall grant to the complainant such relief as he would be entitled to if he held the legal title and was in possession. If an issue of fact be raised which but for this section would entitle either party to a trial by jury, the court shall, upon the request of the party so entitled, order such issue to be tried by a jury at its bar and the verdict of the jury shall have the like effect as if it had been rendered in an action at law.
Code 1919, § 6248.