in reply to Sorting data pulled in by DBI

(the data) is ordered too by id_number. which is exactly what it should be like, BUT I need to somehow sort this incomming data by college.

Let the database do the work.

$sql = <<SQL; SELECT DISTINCT student_id, student_name, student_address, student_gpa, college FROM school WHERE minor = 'CS' ORDER BY college, student_id SQL
All you need do then is recognize when "college" changes.