Digital dictionary using trie

my code

i CANNOT UNDERSTAND WHY THIS IS FAILING.
I THINK THE WAY I DO THE RECURSION FOR THE TRIE HANDLES THE LEXICOGRAPHIC SORT PART TOO.

question link