Lien priority determines who gets paid first after a foreclosure sale. Learn how lien priority is determined. Lien priority determines the order in which creditors get paid following a foreclosure. If a lien has priority over another lien, it gets paid before the other lien. Read on to learn more about different types of liens, how lien priority is determined, and how priority affects what happens to liens in a foreclosure.