Revert "mapi/new: sort by slot number"
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Dec 2018 13:14:29 +0000 (13:14 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Jan 2019 18:13:25 +0000 (18:13 +0000)
This reverts commit a1f5d9412cf7cacb3534635f6c2409fafbe6574e.

We no longer needed to sort - it was meant only to ease compare against
the old generated files.

src/mapi/new/genCommon.py

index a9fdbcdc9eec7b5d710de4daab3b61ae57c71e8c..bf71de14891c743446429630f2e7b5ea57f2396a 100644 (file)
@@ -92,9 +92,6 @@ def getFunctionsFromRoots(roots):
             functions[i] = functions[i]._replace(slot=next_slot)
             next_slot += 1
 
-    # Sort the function list by slot.... to simplify the diff
-    functions = sorted(functions, key=lambda f: f.slot)
-
     return functions
 
 def getExportNamesFromRoots(target, roots):