My program reads from a file and splits up each line into three variables. My problem is, I need the lines in order based on the first variables. I don't know how to do it though. The file is opened in one classed, and read from another. The first class has an array of the second class. I have no array to sort in the second class, so would I have to sort in the first class? I was thinking I could sort in the second class based on the first variable, but instead of just moving each one up a position, I would have to move each one in each array up. That seemed liked a little too much work, then I realized the no array thing. My second guess is to open the file, read the whole thing, sort it, then pass it into the other function to split up the variables. I don't really know if that possible. Anyone have any suggestions?