Fixed child ordering in xml repository