Printing Account Balance

Hi there everyone! I recently started working with SambaPOS and I have a question.
When I print the Account Balances it is sorted by Account Name but I want to print it sorted by Account Balance as Descending. How can I accomplish this task?

Would be helpful to see what you have at the minute, can you show your template?