If goods or other property sold on execution have been attached by other creditors or seized on other executions by the same or another officer, or if, before payment of the residue to the debtor, any other writ of attachment or execution against him is delivered to the officer who made the sale, the proceeds shall be applied to the discharge of the several judgments in the order in which the writs of attachment or execution were served. The residue, if any, shall be paid over to the debtor.
14 M.R.S. § 5001