29-1-402. Priority of liens.
(a) Except as provided in this section, the liens provided by this act shall be on an equal footing without reference to the date of the filing of the lien statement.
(b) Any lien perfected in compliance with this act attaches to the real property, fixtures, materials, machinery or supplies furnished and improvements made in preference to any subsequent lien, security interest or mortgage under any other provision of law which has been perfected upon real or personal property, including a leasehold interest, against which the lien is claimed.
(c) Any lien, security interest or mortgage which has been perfected upon real or personal property or upon a leasehold interest prior to the commencement of any construction work or repair of the premises or property, except as provided by chapter 7 of this act, or W.S. 29-8-102 relating to liens for the production of farm products under contracts executed, entered into, renewed or substantively amended on or after July 1, 2001, shall have priority.
(d) Where a sale is ordered by the court on foreclosure of any lien provided by this act and the proceeds from the sale are insufficient to discharge in full all of the liens, the proceeds shall be prorated among the several lien claimants according to the amounts of their respective claims.