[IronPython] Sorting CSV file

Michael Foord fuzzyman at voidspace.org.uk
Fri Jan 23 14:16:13 CET 2009


Sheetal Gophane wrote:
>
> Hi All,
>
>  
>
> I have csv file in following format
>
> LogTime,ApetClientID,OperationName,Status,StartTime,Duration
>
> 2009-01-07/10:41:03,1,fun1,1,2009-01-07/10:41:02,314.8173162
>
> 2009-01-07/10:41:03,1,Login,0,2009-01-07/10:41:02,618.2695007
>
> 2009-01-07/10:41:03,1,Login,1,2009-01-07/10:40:52,10997.29274
>
> 2009-01-07/10:41:04,1,fun2,1,2009-01-07/10:41:03,364.0241288
>
> 2009-01-07/10:41:04,1,DoLogin,1,2009-01-07/10:40:52,11248.42243
>
> 2009-01-07/10:41:04,1,fun3,1,2009-01-07/10:41:03,1197.179181
>
>  
>
> I want to sort this file on the basis of first field i.e. LogTime
>
> Any pointers,how to do this?
>

What have you tried so far?

Michael Foord

> Thanks in advance.
>
>  
>
> Thanks & Regards,
>
> Sheetal
>
>  
>
> DISCLAIMER ========== This e-mail may contain privileged and 
> confidential information which is the property of Persistent Systems 
> Ltd. It is intended only for the use of the individual or entity to 
> which it is addressed. If you are not the intended recipient, you are 
> not authorized to read, retain, copy, print, distribute or use this 
> message. If you have received this communication in error, please 
> notify the sender and delete all copies of this message. Persistent 
> Systems Ltd. does not accept any liability for virus infected mails.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   




More information about the Ironpython-users mailing list