<br><br><div class="gmail_quote">On Wed, Jan 13, 2010 at 9:21 AM, Hs Hs <span dir="ltr"><<a href="mailto:ilhs_hs@yahoo.com">ilhs_hs@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi:<br><br>I have a tab-delim file:<br><br>col1 col2 col3<br>andrew 1987 1990<br>jake 1974 1980<br>jim 1964 1970<br>
lance 1984 1992<br><br><br>how can I sort column 2 and get :<br>jim 1964 1970<br>jake 1974 1980<br>lance 1984 1992<br>andrew 1987 1990<br><br><br>I know how to sort a items in one list. but
I cannot get how this can be done on a file. <br><br>any suggestions. thanks!<br>Hs<br><br><br>
</div><br>
</div><br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br><div><br></div><div>Sounds like a school project to me </div>