I have a XML file that its nodes have sorted by ID attribute .
Code:
<Information>
<Data ID="1" />
<Data ID="2" />
<Data ID="3" />
<Data ID="4" />
<Data ID="15" />
<Data ID="7" />
<Data ID="8" />
<Data ID="9" />
<Data ID="10" />
<Data ID="11" />
</Information>
But there are some nodes in the XML file that broken this sorting.
I'm going to detect them, but I don't know how I can do it !
e.g : in this case <Data ID="15" /> broken the sorting.
I don't want to sort them again, because the ID numbers are valuable and I shouldn't miss them.
Could you guide me how I can do it with LINQ ?
Thanks in advance.