Cal. Harb. & Nav. Code § 462
Of two or more bottomry liens on the same subject, the latter in date has preference, if created out of necessity.