Chapter 5. Characters and sorting