Alphabet reorder.
Rewrited checking of the dependencies.