Hello all I am trying to read in data from a file and while the program is still reading the file I need to sort the data and print out what data I can. For example say the data I am reading in is show below. I need to read in the 4t,2y,3d, and 1r then print 1r,2y,3d,4t and remove them from the list. Then I can read in the 7h and 9e. I have a program that will read in and sort the data all at once, but I am lost on how to start the second part of the program. Any tips or help would be greatly appreciated!