medium: xmlutil: Fix sorting of attribute keys in xml_cmp