improve sorting tests for transactions
exercise 9 - update statement to print in sorted order