From e2b8f981c4ead65721cc001fdaa5cca04f743abf Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 2 Oct 2009 12:17:18 +0100 Subject: [PATCH] Fix ordering of in API description file * docs/apibuild.py: Make uniq() function sort keys before returning them to ensure consitent ordering of in XML file --- docs/apibuild.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index b00619fc26..c5257f3813 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -55,7 +55,9 @@ def uniq(items): d = {} for item in items: d[item]=1 - return d.keys() + k = d.keys() + k.sort() + return k class identifier: def __init__(self, name, header=None, module=None, type=None, lineno = 0, -- GitLab