(5) Subject to any express provision or direction to the contrary, the proper officer of the Court shall apply any sum paid and received in part payment towards the payment in full or in part, firstly, of any costs adjudged to be paid to the person, secondly, of any damages or compensation adjudged to be paid to any person and thirdly, in the manner in which fines are applied.