Removing duplicates

by Feb 10, 2011

Hello,

I have a list  of <datetime,int> types and want to sort and remove the duplicates. Could someone please help me. Here is a sample data:

 

20/06/2010 00:00:00, 0

20/06/2010 00:00:00, 2

21/06/2010 00:00:00, 0

22/06/2010 00:00:00, 3

22/06/2010 00:00:00, 0

23/06/2010 00:00:00, 0

 

so I want to have a list which is

20/06/2010 00:00:00, 2

21/06/2010 00:00:00, 0

22/06/2010 00:00:00, 3

23/06/2010 00:00:00, 0

 

Thanks