Sort chapters properly.