Sort output/input properties when generating xml