A lien under AS 34.35.125 and 34.35.130 is a preferred lien, prior and superior to a mortgage, conditional sale agreement, attachment, claim, or demand, unless the mortgage, conditional sale agreement, attachment, claim, or demand is in writing and recorded in the recorder's office of the recording district where the property is located before the work for which the lien is claimed is started. A sale, transfer, mortgage, assignment, or attachment made or filed for record after the work is started does not have the effect of postponing the lien.