* Keith M Wesolowski <Keith.Wesolowski at sun.com> [2007-10-08 22:24]: > On Mon, Oct 08, 2007 at 03:00:14PM -0700, Stephen Hahn wrote: > > > I'm surprised there isn't ordering instability from the > > svc.configd/libscf query that iterates through the services. It's > > There definitely is. This made testing the archive -a changes > somewhat more a manual process than I would have liked.
It looks like all the calls to xmlAddChild() need to be deferred until we have the name attributes of the respective entities. We could either build each layer of the tree up as a list, sort, and then insert in order, or we could try to do it in place with xmlAdd{Next,Prev}Sibling(). If there are no sneaky timestamps, then that sounds like the two primary cases. Anyone feel up to a patch? - Stephen -- sch at sun.com http://blogs.sun.com/sch/