Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort CSV using forst column

Status
Not open for further replies.

143842

Programmer
Feb 8, 2008
4
US
Hi,

I have CSV file without header

how to sort all the reocrds in the csv file based on first column
 
what have you tried so far?

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Depends how often you need to do it. If it's a one-off, you could always open it in Excel, sort it, and save it.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
(in the voice of Peter Griffin)
Whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa whoa..
this is the perl forum..

[thumbsup2]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top