Extract _cmp function.
[bertos.git] / wizard / bertos_utils.py
index f10d7dc59fafc11de78f98398a20763a83fed4d6..465808aaf657fb26f28240a7e85f44083f6c93e2 100644 (file)
@@ -51,6 +51,9 @@ from _wizard_version import WIZARD_VERSION
 
 from LoadException import VersionException, ToolchainException
 
+def _cmp(x, y):
+    return cmp(x["info"].get('ord', 0), y["info"].get('ord', 0))
+
 def isBertosDir(directory):
    return os.path.exists(directory + "/VERSION")