Lexically sort the error code definitions.