This tool will sort xml or xsd like a msdataset. It leaves the order of fields (xs:sequence) intact when the exclusions checkbox is selected.
How?: Paste xml and press sort, copy xml into file. Tweak the exclusion list to make it work for your kind of xml. Note: xml is casesensitive, so is the exclusionlist.