The proceeds of the sale shall be applied to the satisfaction of the executions issuing in the actions in which the estate was attached, in the order of the attachments, and then to the payment of any other executions in the officer’s hands in the order in which they were received; and the residue, if any, shall be paid to the debtor.