sort the bank record and print out with sorted result