Sort:  

Wrong codes. The string of letters is the code to be broken. Perhaps I should have made that clearer.

Edit

OK, I updated it. Nice try though. You appear to have at least read the darn post.