A clerk of a magistrates' court shall apply moneys received by him on account of a sum adjudged to be paid by a summary conviction as follows—
(a)in the first place in payment of any compensation adjudged by the conviction to be paid to any person;
(b)in the second place in payment of any costs so adjudged to be paid to the prosecutor; and
(c)the balance to the fund to which, or the person to whom, he is required to pay the sum by section 61 of the [1979 c. 55.] Justices of the Peace Act 1979 or any other enactment relating to the sum.