You can do the whole thing declaratively:
Items = configFiles.Select((item, index) => new { Doc = XDocument.Parse(item),
Index = index })
.SelectMany(pair => pair.Doc.Root.Elements("Item")
.Select(x => new { Item = x,
Index = pair.Index }))
.OrderBy(pair => pair.Index)
.ThenBy(pair => (string) pair.Attribute("ID"))
.Select(pair => pair.Item);
This basically finds all the elements, but remembers which configuration each is in.
Alternatively, just create a List<XElement>
and add each item's contents:
var items = new List<XElement>();
foreach (var item in configFiles)
{
items.AddRange(XDocument.Parse(item)
.Root.Elements("Item")
.OrderBy(x => (string) x.Attribute("ID")));
}
Items = items;
In some ways that's less elegant, but it's probably easier to understand :)