sorting a file with records - amended

From: mike (s99999999s2003_at_yahoo.com)
Date: 11/13/03


Date: 13 Nov 2003 01:51:10 -0800

hi

i have a sample file like this (field separator is a space):

orion 13-11-2003 mike
jupiter 11-11-2003 susan
venus 12-11-2002 alvin
neptune 10-11-2002 sharon

i just want to sort this file on the first column by string so
eventaully the output is:

jupiter 11-11-2003 susan
neptune 10-11-2002 sharon
orion 13-11-2003 mike
venus 12-11-2002 alvin

how can i do that just with the sort function from perl??
thanks very much for any help



Relevant Pages

  • sorting a file with records
    ... venus 12-11-2002 alvin ... neptune 10-11-2002 sharon ... i just want to sort this file on the first column by string so ...
    (comp.lang.perl)
  • Re: Alphabetize Favorites on Taskbar
    ... "Sharon F" wrote: ... >> continue each time I add one to Favorites? ... > sort: Click on Favorites in the menu. ... > New items will be added to the end of the lists. ...
    (microsoft.public.windowsxp.newusers)
  • The Names - Ricardo Quinn
    ... Get Well cards to sharon with an innocuous but lethal to someone under ... sedation chemical... ... some sort of depressant/sedative to add to his already ... sedated state. ...
    (soc.culture.palestine)
  • Re: XP Pro FAX
    ... > Okay, Sharon, where do we go from here? ... I guess this is good news of a sort. ... Even though Fax isnt' entirely ... Enable and Configure the Fax Service in Windows XP ...
    (microsoft.public.windowsxp.basics)
  • Re: sword at a gun fight
    ... That fuckin address is a nightmare! ... Alvin in AZ ...wondering what sort of crap I now have lurking on ...
    (rec.knives)