updating sort block to take a transaction.