If by the order of the court, it could only be with such liabilities as had been or should be adjudged by that court; if upon equitable principles, then it could only be to the extent of the amount diverted to betterments, and defendant in error should have been confined to a lien on specific improvements, measured by the proportion which the aggregate of like claims would bear to the amount diver