Sort an XML Document

(Using Document Object Model)