The way I would do this is to use an XSL Transform.
<xsl:for-each select="NEWSITEM">
<xsl:sort select="@NEWSDATE"/>
....
</xsl:for-each>
Of course, there might be other ways to tackle this, but this is one.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"DotNet" <as*****@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Is there a way to order items read from an XML document by their
attributes
using XmlTextReader, eg
<NEWSITEM NEWSDATE="2002-01-23">item 1</NEWSITEM>
<NEWSITEM NEWSDATE="2002-01-24">item 2</NEWSITEM>
and order this by date?