The court may, in its discretion, order the fees of the attorneys for the complainant and defendant to be paid out of the common fund, where the property is sold for partition, and taxed as cost in cases where the property is partitioned in kind.