sort XML output