23. Alphabetizing and Arranging Your Data
In This Chapter
• Conducting faster searches
Sorting is the computer term given to ordering lists of values. Not only must you be able to find data in arrays, but you often need to arrange array data in a certain order. Computers are perfect for sorting and alphabetizing data, and arrays provide the vehicles for holding sorted data.
Your programs don’t always hold array data in the order you want to see that data. For example, students don’t enroll based on alphabetical last name, even though most colleges print lists of students that way. Therefore, after collecting student data, the school’s computer programs must somehow arrange that data in last name order ...