TrigCommon: Work around py3 incompatibility.
HLTMPPy builds xml output by iterating over dictionaries. The ordering of this is not well-defined in py3, giving spurious test failures. For now, work around this by monkey-patching the xml printing function to sort the elements, but it would be better to address this where the DOM objects are first made.