
Whilst working on the Reproducible Builds effort [0], the team noticed that diskimage-builder could not be built reproducibly as it iterates over XML elements in a non-deterministic order when generating the documentation. This patch sorts the elements, and is a forward of the patch sent to the Debian BTS [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/892020 Change-Id: I40011514a135bc50383b072ab83c7f91689bad5a