A PA attorney related a case of his; here is some background. In PA we have some interesting rules on recording order; I have copy-n-pasted here:
Title 42 Pa.C.S.A. Judiciary and Judicial Procedure
Part VII. Civil Actions and Proceedings
Chapter 81. Judgments and Other Liens
Subchapter C. Priority of Liens
42 Pa.C.S.A. § 8141
§ 8141. Time from which liens have priority
Liens against real property shall have priority over each other on the following basis:
(1) Purchase money mortgages, from the time they are delivered to the mortgagee, if they are recorded within ten days after their date; otherwise, from the time they are left for record. A mortgage is a "purchase money mortgage" to the extent that it is:
(i) taken by the seller of the mortgaged property to secure the payment of all or part of the purchase price; or
(ii) taken by a mortgagee other than the seller to secure the repayment of money actually advanced by such person to or on behalf of the mortgagor at the time the mortgagor acquires title to the property and used by the mortgagor at that time to pay all or part of the purchase price, except that a mortgage other than to the seller of the property shall not be a purchase money mortgage within the meaning of this section unless expressly stated so to be.
(2) Other mortgages and defeasible deeds in the nature of mortgages, from the time they are left for record.
(3) Verdicts for a specific sum of money, from the time they are recorded by the court.
(4) Adverse judgments and other orders, from the time they are rendered.
(5) Amicable judgments, from the time the instruments on which they are entered are left for entry.
(6) Writs which when issued and indexed by the office of the clerk of the court of common pleas create liens against real property, from the time they are issued.
(7) Other instruments which when entered or filed and indexed in the office of the clerk of the court of common pleas create liens against real property, from the time they are left for entry or filing.
OK, now that you get totally confused by that, check the line beginning at "(1)" - notice that there is a ten day requirement for the recording to be done in PA. Well, in this attorney's case, there were both first and second purchase money mortgages taken out on the same day, but the recording did not happen in ten days time. And when the county recorder got the instruments, the lower dollar amount mortgage was recorded first in the recorder's book. That made it the first mortgage in priority, an inverse of what one would expect.
So, maybe you are seeing a bigger dollar mortgage and assuming it is first, but maybe there is something in your state similar to the recording rules that I just presented. Maybe the bigger loan actually came in second!