Sorting transactions.