Fix sort for pretty printing transactions