A program that sorts book IDs with purchaser IDs