Liens in GeneralPriority of Liens
Section § 2897
This law says that when there are several claims on the same property, the claim that was made first has the right to be paid off first. However, there are exceptions for specific types of maritime loans called bottomry and respondentia.
Section § 2898
When you buy a property and take out a mortgage or deed of trust at the same time, this mortgage or deed gets priority over any other debts against the buyer, as long as all documents are properly recorded. Additionally, if you're dealing with a lease on property, the rules for determining which debts take priority are the same as those for property sales.
Section § 2899
If a person has a lien on multiple items and others have secondary liens on some of those items, the person with the first lien must choose the items to satisfy the lien in a specific order, provided it doesn't cause them loss or unfairness to others. First, they should look at items they alone have a lien on. Next, they should look at items with the fewest secondary liens, then those with more. Within these groups, they should prioritize items that haven't changed hands since the lien, those given away, and lastly, those sold, in reverse order of sale.