Sort out Error codes and dependencies in alphabetic order