(a) A lien under AS 34.35.320 - 34.35.390 is preferred, prior, and superior to a mortgage, attachment, claim, or demand made or recorded in the recorder's office of the recording district where the property subject to the lien is located after
(1) the commencement of the work for which the lien is claimed;
(2) the material is furnished for which the lien is claimed.
(b) A sale, transfer, mortgage, assignment, or attachment recorded after the commencement of the work or furnishing of the material does not postpone the lien. A lien under AS 34.35.320 - 34.35.390 is not prior or paramount to a valid prior lien for labor performed or material furnished in the construction, alteration, or repair of the houses, wharves, or other shore property.