Homework 9 for CS 110A, Fall 2013: Sort a struct