Input is similar to the following...
------------------------------------------------------------
<item>
<title>Pietersen set for England return</title>
<description>England batsman Kevin Pietersen is likely to be fit for both the one-day and Test series in South Africa as he recovers from an Achilles problem.</description>
<link><pubDate>Fri, 30 Oct 2009 18:16:52 GMT</pubDate>
</item>
<item>
<title>Lee joins Australia injury list</title>
<description>Fast bowler Brett Lee becomes Australia's latest injury casualty after an elbow injury rules him out of the remainder of the one-day series against India. </description>
<link><pubDate>Wed, 28 Oct 2009 14:38:56 GMT</pubDate>
</item>
<item>
<title>Discarded Tudor bids to play on</title>
<description>Ex-England paceman Alex Tudor, released by Surrey along with Pedro Collins, bids to continue his cricketing career.</description>
<link><pubDate>Thu, 29 Oct 2009 18:01:08 GMT</pubDate>
</item>
<item>
<title>Powell agrees move to Lancashire</title>
<description>West Indies Test bowler Daren Powell joins Lancashire on a two-year contract - subject to visa and registration clearance.</description>
<link><pubDate>Thu, 29 Oct 2009 08:09:24 GMT</pubDate>
</item>
<item>
<title>Wage demands hamper Worcs coach</title>
<description>Worcestershire's director of cricket Steve Rhodes says his attempts at signing new players are being hampered by their wage demands.>
</description>
<link><pubDate>Fri, 30 Oct 2009 09:45:09 GMT</pubDate>
</item>
-----------------------------------------------------------
The paragraphs are delimited with the <item> and </item> tags. I need to sort the above (most recent first) based the date shown within the <pubDate> tags. This is a sample input. The normal input has several paragraphs.
Thanks,
AR
------------------------------------------------------------
<item>
<title>Pietersen set for England return</title>
<description>England batsman Kevin Pietersen is likely to be fit for both the one-day and Test series in South Africa as he recovers from an Achilles problem.</description>
<link><pubDate>Fri, 30 Oct 2009 18:16:52 GMT</pubDate>
</item>
<item>
<title>Lee joins Australia injury list</title>
<description>Fast bowler Brett Lee becomes Australia's latest injury casualty after an elbow injury rules him out of the remainder of the one-day series against India. </description>
<link><pubDate>Wed, 28 Oct 2009 14:38:56 GMT</pubDate>
</item>
<item>
<title>Discarded Tudor bids to play on</title>
<description>Ex-England paceman Alex Tudor, released by Surrey along with Pedro Collins, bids to continue his cricketing career.</description>
<link><pubDate>Thu, 29 Oct 2009 18:01:08 GMT</pubDate>
</item>
<item>
<title>Powell agrees move to Lancashire</title>
<description>West Indies Test bowler Daren Powell joins Lancashire on a two-year contract - subject to visa and registration clearance.</description>
<link><pubDate>Thu, 29 Oct 2009 08:09:24 GMT</pubDate>
</item>
<item>
<title>Wage demands hamper Worcs coach</title>
<description>Worcestershire's director of cricket Steve Rhodes says his attempts at signing new players are being hampered by their wage demands.>
</description>
<link><pubDate>Fri, 30 Oct 2009 09:45:09 GMT</pubDate>
</item>
-----------------------------------------------------------
The paragraphs are delimited with the <item> and </item> tags. I need to sort the above (most recent first) based the date shown within the <pubDate> tags. This is a sample input. The normal input has several paragraphs.
Thanks,
AR