minor fix for state change in sortBook method -- project complete