sorting book codes