If the owner of any real estate sold under an order of sale or the owner's legal representative redeems the real estate, he or she may present to the Superior Court a petition setting forth that fact and thereupon the Superior Court, after hearing and determining the facts set forth in the petition, shall have power to cause to be entered upon the record of the judgment, under which the real estate was sold, a memorandum that the real estate described in the proceedings upon which the judgment was entered has been redeemed. Thereafter the owner shall hold such redeemed real estate subject to the same liens and in the same order of priority as they existed at the time of the sale thereof, excepting so far as the liens have been discharged or reduced by the application of the proceeds by the sheriff from the sale.