849. The ship, together with appurtenances and outstanding freight, even though in the possession of third persons, is liable in respect of the following rights of claim in the order specified :--
i. Judicial costs and other charges incurred in the compulsory sale of the ship and in the distribution of the price realized, as well as the expenses of watching and maintaining the ship and appurtenances from the commencement of the compulsory sale procedure ;
ii. Shipping dues, such as port dues, tonnage dues, light dues and others ;
iii. Expenses of maintaining the ship and appurtenances from the time of her entrance into port, as well as pilotage and towage ;
iv. General average, and expenses for rescue, salvage, and other assistance rendered during the last voyage ;
v. The rights of claim of the master and members of the crew under their contracts of service for the last term thereof ;
vi. The rights of claim in respect of Ioans contracted by the master during the last voyage for the requirements of the ship, and the right of recourse in respect of cargo sold by him for the same purpose during the same, as well as in respect of the price of things or services likewise supplied or rendered to him ;
vii. The rights of claim in respect of the sale, building, and equipment of the ship, inclusive of workmen's wages, if the ship has not yet gone upon a voyage ; and the rights of claim for repairing, equipment, and provisioning for the last voyage, before the ship has entered thereon ;
viii. The rights of claim in respect of loans for purposes of the building or equipment of the ship, or in respect of payments on account of purchase-money by the party on whose account the ship is built, so long as the seip has not been handed over to him ;
ix. The rights of claim in respect of premiums of insurance effected on the ship and appurtenances for her last voyage or last term of premium payment ;
x. The rights of claim in respect of nondelivery of cargo or passengers' luggage, or in respect of any damage the same may have sustained, through the fault of master or crew ;
xi. The rights of claim for damages arising by reason of collision between ships or other fault of the master or crew ;
xii. Such rights of claim as are entered in the shipping register, in the order of the date in which they have been entered ;
xiii. All other rights of claim against the owner or vendor of the ship.
The creditors that come under the same class, with exception of those coming under the class xii, are to be satisfied rateably.