Sort huffman answer