A program that sorts book IDs with their purchasers