(a)
(1) The liens for labor performed or material or fixtures furnished, as provided for in this subchapter, shall have equal priority toward each other without regard to the date of filing the account or lien or the date when the particular labor or material was performed or furnished. All such liens shall date from the time that the construction or repair first commenced.
(2) Construction or repair commences when there is a visible manifestation of activity on real estate that would lead a reasonable person to believe that construction or repair of an improvement to the real estate has begun or will soon begin, including, but not limited to, the following:
(A) Delivery of a significant amount of lumber, bricks, pipe, tile, or other building material to the site;
(B) Grading or excavating the site;
(C) Laying out lines or grade stakes; or
(D) Demolition in an existing structure.
(3) In all cases in which a sale shall be ordered and the property sold, and the proceeds arising from the sale are not sufficient to discharge in full all the liens against the property without reference to the date of filing the account or lien, the proceeds shall be paid pro rata on the respective liens.
(b)
(1)
(A) The liens for labor performed or materials or fixtures furnished, as provided for in this subchapter, shall attach to the improvement on which the labor was performed or the materials or fixtures were furnished in preference to any encumbrance existing on the real estate prior to the commencement of construction or repair of the improvement.
(B) In all cases in which the prior encumbrance was given for the purpose of funding construction or repair of the improvement, that lien shall have priority over all liens given by this subchapter.
(2) The liens, as provided for in this subchapter, shall be enforced by foreclosure, as further provided for in this subchapter, and the property ordered sold subject to the lien of the prior encumbrance on the real estate.
(c) The lien for labor performed and materials or fixtures furnished, as provided for in this subchapter, shall have priority over all other encumbrances that attach to the real estate or improvements thereon subsequent to commencement of construction or repair.