When any real estate shall be sold under any writ, order or proceeding in any court, the court shall, on motion of any person interested in such real estate or in the purchase or proceeds of the sale thereof, order all taxes, assessments and penalties charged thereon to be paid out of the proceeds of such sale as a lien prior to all others.
S.C. Code § 12-49-60