how do i go about sorting a file in order. The file will contain three different sized structures. The sort will be of the second field, the first denoting which type of structure the record is. The question says to "define the three structures, use a standard sort utillity and is quite straightforward." I have done a sort of an array, comparing elements and if need be swap them. Do i do this with a file, if so why does the question say to output to a new "sorted file"?