Ever wondered what was the most efficient way to alphabetize a giant pile of books? Look no further than computer science, which provides the perfect real-world algorithm for just such a task.