elog-gen.py : order inherited errors

The elog-gen.py script should process errors such that the generated
code has definitions for parent errors before their child errors are
defined.

Change-Id: I035292731346bdba969f549c7e4033066814890f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml b/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
index 1ec9997..6f75178 100644
--- a/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
+++ b/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
@@ -1,5 +1,7 @@
 - name: TestErrorOne
   description: this is test error one
+  inherits:
+    - TestErrorTwo
 
 - name: TestErrorTwo
   description: This is test error two