For many report evaluations, the sequence in which you want to process data may differ from the sequence in which it is stored. Since the results of read operations generally reflect the sequence in which data is stored, you must resort all of the data you selected into the desired sequence.
A typical result of formatting data in the context of a flight reservation application is creating a list that is designed to contain each flight number. The possible connections are to be sorted by departure city, the flights by date, and the customer data by class and smoker/non-smoker. For each flight, the total number of passengers and the overall luggage weight need to be displayed.
A section of the resulting list should look like this: