added dir name sort in FileUtils' toXML() functions