$NetBSD: patch-au,v 1.1 2005/08/19 13:06:31 bouyer Exp $ --- python/xen/xend/XendDomain.py.orig 2005-08-13 01:54:56.000000000 -0400 +++ python/xen/xend/XendDomain.py 2005-08-13 01:55:17.000000000 -0400 @@ -147,7 +147,10 @@ domid = str(d['dom']) doms[domid] = d dlist = [] - for config in self.domain_db.values(): + domkeys = map(int, self.domain_db.keys()) + domkeys.sort() + for domkey in domkeys: + config = self.domain_db.get(str(domkey)) domid = str(sxp.child_value(config, 'id')) if domid in doms: d_dom = self._new_domain(config, doms[domid])