(1) first to cover the costs of foreclosure provided for in section 3711 of this title;
(2) then to pay valid tax liens or assessments prior to the mortgage;
(3) then to pay any liens recorded prior to the recording of the mortgage which are required to be paid in conformity with the terms of sale in the notice of default and foreclosure sale;
(4) then to service charges and advancements for taxes, assessments, and property insurance premiums;
(5) then to the interest;
(6) then to the principal balance secured by the mortgage (including expenditures for the necessary protection, preservation, and repair of the security property as authorized under the mortgage agreement and interest thereon if provided for in the mortgage agreement); and
(7) then to late charges.
Structure US Code
CHAPTER 38— MULTIFAMILY MORTGAGE FORECLOSURE
§ 3704. Foreclosure commissioner; designation, duties, etc.
§ 3705. Prerequisites to foreclosure
§ 3706. Notice of default and foreclosure sale; condition and term of sale
§ 3707. Commencement of foreclosure; powers and duties of foreclosure commissioner or substitute
§ 3708. Service of notice of default and foreclosure sale
§ 3712. Disposition of sale proceeds
§ 3713. Transfer of title and possession