When the order is filed with the clerk or register of deeds of the county, such officer shall discharge and cancel of record the tax sale certificate and shall enter on the margin of the registry or record of the tax sale certificate, and opposite thereto, the words “canceled by order” , entering the date of the order and filing it.