I have a memory of a story in which the custodians of a large library pleaded with a conqueror to not destroy the books within, which he promised. He kept his promise, but still rendered the library useless by having all the books rewritten into alphabetical order, so there were books just full of the letter A and so on. I'd like to know the name of the library, but since I can't remember where I heard the story it's proving difficult to track down.
I don't even know if it's a myth (in the sense of this Stack), something from more modern literature (sounds like something Iain Banks would have come up with), or an allegory for something like the distinction of data vs information.
Having run out of places to look I thought I'd ask here, and I hope it's not inappropriate. But any pointers would be most welcome.