<div dir="ltr">1. Define a class to hold individual data<div>2. Go through every single line</div><div>3. Split based on &#39;,&#39; and insert the values to the object and add them to the list</div><div>4. Sort the list based on the fields you want.</div>
<div><br><div class="gmail_quote">On Fri, Jan 23, 2009 at 10:28 AM, Sheetal Gophane <span dir="ltr">&lt;<a href="mailto:sheetal_gophane@persistent.co.in">sheetal_gophane@persistent.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p>Hi All,</p>

<p>&nbsp;</p>

<p>I have csv file in following format</p>

<p>LogTime,ApetClientID,OperationName,Status,StartTime,Duration</p>

<p>2009-01-07/10:41:03,1,fun1,1,2009-01-07/10:41:02,314.8173162</p>

<p>2009-01-07/10:41:03,1,Login,0,2009-01-07/10:41:02,618.2695007</p>

<p>2009-01-07/10:41:03,1,Login,1,2009-01-07/10:40:52,10997.29274</p>

<p>2009-01-07/10:41:04,1,fun2,1,2009-01-07/10:41:03,364.0241288</p>

<p>2009-01-07/10:41:04,1,DoLogin,1,2009-01-07/10:40:52,11248.42243</p>

<p>2009-01-07/10:41:04,1,fun3,1,2009-01-07/10:41:03,1197.179181</p>

<p>&nbsp;</p>

<p>I want to sort this file on the basis of first field i.e.
LogTime</p>

<p>Any pointers,how to do this?</p>

<p>Thanks in advance.</p>

<p>&nbsp;</p>

<p><span style="font-size:10.0pt;font-family:&quot;Lucida Fax&quot;,&quot;serif&quot;">Thanks
&amp; Regards,</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"></span></p>

<p><span style="font-size:10.0pt;font-family:&quot;Lucida Fax&quot;,&quot;serif&quot;">Sheetal</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"></span></p>

<p><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;</span></p>

</div>

<p>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.</p>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://nomadlife.org">nomadlife.org</a><br><br>
</div></div>