Any officer enforcing the satisfaction of any lien under the provisions of this division shall first apply the proceeds of the crop or property in his hands to the payment of any debt or claim of any third party which constitutes a prior lien upon such crop or property, if the priority of such lien has been established, and the claim ordered to be paid by the court before which the case is tried.