exportToXML ordered by name and date